Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Generation failed: Error: Can not build schema. Must be initialized Query type #796

Closed
craicoverflow opened this issue Feb 27, 2020 · 5 comments
Labels
good first issue Good for newcomers

Comments

@craicoverflow
Copy link

craicoverflow commented Feb 27, 2020

If we do not have a query type initialised in the data model, schemaComposer.buildSchema fails as queryType is undefined.

See: graphql/graphql-js#448

@wtrocki wtrocki added the good first issue Good for newcomers label Feb 27, 2020
@craicoverflow
Copy link
Author

This error is only reproducible in #736 but it might be a wider issue which deserves investigation.

@craicoverflow
Copy link
Author

I've put out a fix in graphql-compose/graphql-compose#237 - in the meantime we will need to workaround it.

@Eunovo
Copy link
Collaborator

Eunovo commented Feb 27, 2020

I want to work on this issue. Can I?

@craicoverflow
Copy link
Author

I want to work on this issue. Can I?

hey @Eunovo - this is an issue with a library we are using, I've put in a fix request here - graphql-compose/graphql-compose#237

Closing this.

@nodkz
Copy link

nodkz commented Feb 28, 2020

@craicoverflow thanks for PR. Just bump a new version with your fix [email protected]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants