title: UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1) in Node.JS
body: <p>Hi I am trying to call async function <code>makeRemoteExecutableSchema</code> which returns promise. </p>
  
  <pre><code>async function run() {
    const schema = await makeRemoteExecutableSchema(
      createApolloFetch({
        uri: "https://5rrx10z19.lp.gql.zone/graphql"
      })
    );
  }
  </code></pre>
  
  <p>I am calling this function in the constructor. </p>
  
  <pre><code>class HelloWorld {
    constructor() {
        try {
          run();
        } catch (e) {
          console.log(e, e.message, e.stack);
        }
     }
  }   
  </code></pre>
  
  <p>I am getting this error. Does anyone know how to resolve this ?</p>
  
  <pre><code>(node:19168) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'getQueryType' of undefined
  (node:19168) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
  </code></pre>