title: How do I fix this typescript and graphql error?
body: <p>In my index file, I am trying to congregate all of my typedefs and resolvers into a <code>GraphQLSchema[]</code> with graphql-tools methods <code>makeExicutableSchema</code> and <code>buildSchema</code> to then put into the GraphQLServer from graphql-yoga. </p>
  
  <pre><code>import { importSchema } from "graphql-import";
  import { GraphQLServer } from 'graphql-yoga';
  import * as path from 'path';
  import * as fs from 'fs';
  import { createTypeOrmConnection } from "./utils/createTypeOrmConn";
  import { mergeSchemas, makeExecutableSchema } from "graphql-tools";
  import { GraphQLSchema } from 'graphql';
  
  export const startServer = async () =&gt; {
    const schemas: GraphQLSchema[] = [];
    const folders = fs.readdirSync(path.join(__dirname, "./modules"));
    folders.forEach(folder =&gt; {
      const { resolvers } = require(`./modules/${folder}/resolvers`);
      const typeDefs = importSchema(
        path.join(__dirname, `./modules/${folder}/schema.graphql`)
      );
      schemas.push(makeExecutableSchema({
        resolvers,
        typeDefs
      }));
    });
  
    const server = new GraphQLServer({
      schema: mergeSchemas({ schemas })
    });
    await createTypeOrmConnection();
    const app = await server.start({port: process.env.NODE_ENV === "test" ? 0 : 4000})
    console.log('Server is running on http://localhost:4000')
  
    return app;
  };
  </code></pre>
  
  <p>And this is the error is at <code>schema: mergeSchema({ schemas })</code>:</p>
  
  <pre><code>Type 'import("/Users/jackrisse/Projects/project-da-league/backend/node_modules/graphql/type/schema").GraphQLSchema' is not assignable to type 'import("/Users/jackrisse/Projects/project-da-league/backend/node_modules/apollo-utilities/node_modules/graphql/type/schema").GraphQLSchema'.
    The types returned by 'getQueryType()' are incompatible between these types.
      Type 'Maybe&lt;GraphQLObjectType&lt;any, any&gt;&gt;' is not assignable to type 'Maybe&lt;GraphQLObjectType&lt;any, any, { [key: string]: any; }&gt;&gt;'.
        Type 'GraphQLObjectType&lt;any, any&gt;' is not assignable to type 'Maybe&lt;GraphQLObjectType&lt;any, any, { [key: string]: any; }&gt;&gt;'.
          Types of property 'isTypeOf' are incompatible.
            Type 'import("/Users/jackrisse/Projects/project-da-league/backend/node_modules/graphql/jsutils/Maybe").Maybe&lt;import("/Users/jackrisse/Projects/project-da-league/backend/node_modules/graphql/type/definition").GraphQLIsTypeOfFn&lt;any, any&gt;&gt;' is not assignable to type 'import("/Users/jackrisse/Projects/project-da-league/backend/node_modules/apollo-utilities/node_modules/graphql/tsutils/Maybe").default&lt;import("/Users/jackrisse/Projects/project-da-league/backend/node_modules/apollo-utilities/node_modules/graphql/type/definition").GraphQLIsTypeOfFn&lt;any, any&gt;&gt;'.
              Type 'GraphQLIsTypeOfFn&lt;any, any&gt;' is not assignable to type 'Maybe&lt;GraphQLIsTypeOfFn&lt;any, any&gt;&gt;'.
                Types of parameters 'info' and 'info' are incompatible.
                  Property 'cacheControl' is missing in type 'import("/Users/jackrisse/Projects/project-da-league/backend/node_modules/apollo-utilities/node_modules/graphql/type/definition").GraphQLResolveInfo' but required in type 'import("/Users/jackrisse/Projects/project-da-league/backend/node_modules/graphql/type/definition").GraphQLResolveInfo'.
  </code></pre>