-
Notifications
You must be signed in to change notification settings - Fork 2k
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
extend type Query keyword doesn't work #1158
Comments
@mortenko Can you make a reproduction of the issue, similar to https://glitch.com/edit/#!/vigorous-bone?path=server.js:1:0? Is this with Apollo Server 2 or 1? |
Hi evans. |
If you run |
I'm not using apollo (I found this issue while searching the error), but I think this is the situation described in graphql/graphql-js#922. It looks like version 0.12.0 has a breaking change to how Pinning |
Great to hear! I'm going to close this now |
extend keyword doesn't work in schema
I'm modularizing my graphql schemas and I would like to extend Query in schema Product but I still get following error: Error: Query.products defined in resolvers, but not in schema.
This is just shortened form of my code.
Resolvers for Customer and Product schemas have following structure:
const [schema_name]resolvers = {
Query: {
.....
products: () => {.....}
},
Mutation: {
products: () => {.....}
......
}
}
Customer schema:
Product schema
Here Im importing schemas using export default .
It works only if I have just only one query. The same problem is with mutations.
Thanks for help.
The text was updated successfully, but these errors were encountered: