title: GraphQL query return NULL in GraphiQL, but data appears in console log
body: <p>I have a GraphQL API which is supposed to return data from MySQL and PostGres database. In the resolvers, I have console.log the results and can view the data in the terminal.</p>
  <pre><code>address: {
        type: AddressType,
        description: &quot;An Address&quot;,
        args: {
          id: { type: GraphQLInt },
        },
        resolve: (parent, args) =&gt; {
          // Make a connection to MySQL
          let result;
          connection.query(
            `SELECT * FROM addresses WHERE id = ${args.id}`,
            (err, res, fields) =&gt; {
              if (err) console.log(err);
              console.log(&quot;========&quot;);
              console.log(res);
              console.log(&quot;+++++++++&quot;);
              console.log(res[0]);
  
              // console.log(result);
            }
          );
          return result;
        },
      },
  </code></pre>
  <p>In the terminal, I can see the results when I run the query on GraphiQL:</p>
  <pre><code>[nodemon] starting `node schema.js`
  Server is running
  Connected to PSQL database.
  Connected to mySQL database.
  ========
  [
    RowDataPacket {
      id: 1,
      address_type: 'House',
      status: 'Inactive',
      entity: 'Building',
      number_and_street: 'PO BOX 276',
      suite_and_apartment: 'PO',
      city: 'Ennis',
      postal_code: '59729-0276',
      country: 'USA',
      notes: 'Dolorem quia repellendus et et nobis.',
      created_at: 2020-12-18T05:00:00.000Z,
      updated_at: 2021-05-21T04:00:00.000Z,
      latitude: null,
      longitude: null
    }
  ]
  +++++++++
  RowDataPacket {
    id: 1,
    address_type: 'House',
    status: 'Inactive',
    entity: 'Building',
    number_and_street: 'PO BOX 276',
    suite_and_apartment: 'PO',
    city: 'Ennis',
    postal_code: '59729-0276',
    country: 'USA',
    notes: 'Dolorem quia repellendus et et nobis.',
    created_at: 2020-12-18T05:00:00.000Z,
    updated_at: 2021-05-21T04:00:00.000Z,
    latitude: null,
    longitude: null
  }
  </code></pre>
  <p>However on GraphiQL, I get null for data.
  Input:</p>
  <pre><code>{
    address(id: 1) {
      address_type
    }
    }
  </code></pre>
  <p>output:</p>
  <pre><code>{
    &quot;data&quot;: {
      &quot;address&quot;: null
    }
  }
  </code></pre>
  <p>I am very new to GraphQL. What could I be missing here? I am attempting to get this information from the terminal to show upon query in GraphiQL. Just trying to learn more.</p>