Graphql-tools: TypeScript error mergeSchemas without resolvers property

Created on 1 Nov 2017  路  3Comments  路  Source: ardatan/graphql-tools

Intended outcome: I want to use mergeSchemas to merge a remote and a local schema. I expect this piece of code to work: const schema = mergeSchemas({ schemas: [localSchema, remoteSchema ]});. Based on the Apollo docs.

Actual outcome: TypeScript error: Property 'resolvers' is missing in type '{ schemas: GraphQLSchema[]; }'.'

How to reproduce the issue: Create two executable schemas using makeExecutableSchema and merge.

Most helpful comment

Fixed, I'll release later today.

All 3 comments

I'd say so.

Fixed, I'll release later today.

Was this page helpful?
0 / 5 - 0 ratings