graphql-parser
graphql-parser copied to clipboard
Experimental Facebook's GraphQL parser
I think the alias syntax has changed to use a colon (https://facebook.github.io/graphql/#sec-Field-Alias) rather than "as". So `a as b` is now written as `b: a`.
The following query is currently considered bad (no quotes around enum type): ``` { post( type: SPONSORED, name: "Why you should work more" ){id}} ```
A function to generate a GraphQL query string from an AST would be super-useful for me. Is there any chance of this landing as a feature in graphql-parser?