gqlparser
gqlparser copied to clipboard
Feature Request: Add utilities similar to graphql-js
graphql-js has some utilities specified here: https://graphql.org/graphql-js/utilities/
It would be very nice for gqlparser also to support those utilities.
For example: something like buildClientSchema is very useful if you want to just re-create ast.Schema from introspection response of a server.
@vektah @vvakame any thoughts?
I may not know if some of those utilities are already there in gqlparser, but AFAIK buildClientSchema doesn't exist here.
Nice feature to generate golang client code.
Currently, I have to use https://github.com/prisma-labs/get-graphql-schema, to generate IDL file from server, and parse it to ast.Schema.
If gqlparse supports buildClientSchema it helps a lot, to make a pure golang tool.
I'll take a gander, recently did something here: https://github.com/suessflorian/gqlfetch, I reckon we can unmarshal a introspection result directly into an ast.Schema.
@suessflorian thanks,you give me a big favor .