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

Type extension information gets lost when a schema is parsed and printed #2386

Closed
pmantica1 opened this issue Jan 23, 2020 · 1 comment
Closed

Comments

@pmantica1
Copy link

I noticed that type extension information gets lost when a schema is printed and parsed. Essentially, I noticed the following issue:

const graphql = require("graphql");
schema = "type Object {a : Int} extend type Object {b: Int}"
console.log(graphql.printSchema(graphql.buildASTSchema(graphql.parse(schema))));
// type Object {a: int} 

This seems like a bug to me though I am not 100% what the expected behavior is. Please let me know what you think.

(Please pardon my poor javascript since I am primarily a python developer. I noticed the issue originally in the python port of the GraphQL library and backtracked it here).

@IvanGoncharov
Copy link
Member

@pmantica1 Thanks for reporting 👍
This particular issue is fixed in #2248 and released in 15.0.0-alpha.2
AFAIK it's not yet ported to Python.

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

2 participants