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

Feature Request: Add utilities similar to graphql-js #125

Open
abhimanyusinghgaur opened this issue May 5, 2020 · 4 comments
Open

Feature Request: Add utilities similar to graphql-js #125

abhimanyusinghgaur opened this issue May 5, 2020 · 4 comments

Comments

@abhimanyusinghgaur
Copy link
Contributor

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.

@abhimanyusinghgaur
Copy link
Contributor Author

abhimanyusinghgaur commented May 5, 2020

@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.

@unlinking
Copy link

unlinking commented Jun 21, 2020

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.

@suessflorian
Copy link

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.

@AnsonCode
Copy link

@suessflorian thanks,you give me a big favor .

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

4 participants