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

Expose constructQuery to public function #34

Open
remones opened this issue Nov 19, 2018 · 4 comments
Open

Expose constructQuery to public function #34

remones opened this issue Nov 19, 2018 · 4 comments

Comments

@remones
Copy link

remones commented Nov 19, 2018

In my case, the server that I depend on should be mocked, and I need to verify the request in the HTTP handler, so I think it's better to expose some tool functions which can help us to encode/decode.

@adamgoose
Copy link

I could benefit from this as well. See #27 (comment)

@dmitshur
Copy link
Member

dmitshur commented Apr 11, 2019

I'm warming up to this idea, but in a slightly different form.

I think it might be a good idea to expose some of the graphql internals (in this project), but in another location. The idea would be to make it possible to assemble a relatively high level GraphQL client (preferably tailored for a specific GraphQL server) library from the low-level building blocks.

I need to think it through some more and see what would be a good location for it. It's important to keep the boundary between the internals and the high level-client clear. I'll post updates here when I make more progress.

@remones
Copy link
Author

remones commented Apr 13, 2019

Thanks for your reply. Looking forward to it.

@kfilipovski
Copy link

+1 It would be great to separate the graphql query constructions/parsing as a public package either in this repo or separate repo. Same 2 use-cases for me - writing a query to test a gqlgen server + constructing queries for subscriptions over websocket. Thanks.

grihabor pushed a commit to grihabor/graphql that referenced this issue Jul 20, 2022
* update docs for v0.7.0 features

* fix markdown table of content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants