title: GQL resolver: returning null
body: <p>I'm calling data from an API and have a resolver that looks like this:</p>
  <pre><code>Query: {
      async getSomething(parent, args, ctx, info) {
        const kek = yada.aol.emails(function (err, res) {
              return[{name: &quot;lmao&quot;}]
              // returns null every time
          })
        return [{name: &quot;lol&quot;}]
        // returns correctly
      },
    },
  
  </code></pre>
  <p>However, the data I need to return would be the response within the function. I was wondering as to why anything I return that's nested in that function returns <code>null</code> and how I can continue to shape the data appropriately?</p>