Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeScript error mergeSchemas without resolvers property #461

Closed
BassT opened this issue Nov 1, 2017 · 3 comments
Closed

TypeScript error mergeSchemas without resolvers property #461

BassT opened this issue Nov 1, 2017 · 3 comments

Comments

@BassT
Copy link
Contributor

BassT commented Nov 1, 2017

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.

@kbrandwijk
Copy link
Contributor

@BassT
Copy link
Contributor Author

BassT commented Nov 2, 2017

I'd say so.

@freiksenet
Copy link
Contributor

Fixed, I'll release later today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants