-
Notifications
You must be signed in to change notification settings - Fork 56
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
Empty queryType and mutationType #191
Comments
we had this working on gql-import v0.4.0 and it is now broken upgrading to v0.6.0 any update on this or a potential fix? I am going through the codebase migrating to apollo server 2.0 and upgraded the ancillary packages leading to this error. It says my queries and mutations are not defined in the schema. reverted graphql-import and graphql-tools, working build on AS 2.0: |
Would it be possible for any of you to make a full example reproducing this scenario? |
Hi @ma-jahn ! You can also get the final schema in different formats such as const finalSchema = await importSchema('./some-schema.graphql', {}, 'DocumentNode'); |
Available in 1.0.0! |
I split my schema into pieces. Then I import them piece by piece, make some processing/generatoin and then merge them all together.
Having such piece:
It does not define Query and Mutation, because this type should not be queried from root
After importing the schema, it has empty queryType and mutationType, that leads to errors on further merging.
I think that due to intention of this package (splitting schema in reusable pieces), this types should be populated automatically, shouldn't they?
The text was updated successfully, but these errors were encountered: