-
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
Missing Schema Type #190
Comments
this is definitely a bug, the following assertion should not fail. const sdl = 'schema { query: QueryRoot } type QueryRoot { foo: String }';
expect(print(parse(importSchema(sdl)))).toEqual(print(parse(sdl))); |
Is this repository dead or this bug wasn't considered worth solving? |
Hi @gerardolima ! |
Available in 1.0.0! |
Seems like
importSchema
omits schema type at the moment. For example, I'd expect the parsed SDL in the following simple code contains the schema type and be idential to the source. However, it doesn't.When you run jest, here is the result:
This expected behaviour is hitting me badly as missing the schema type means
visitSchema
ingrahpql-tools
cannot be triggered. I've a hacky solution to my problem, but I think it is a bug which should be fixed.The text was updated successfully, but these errors were encountered: