-
Notifications
You must be signed in to change notification settings - Fork 89
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
Generalize the client? #1
Comments
Yes, in the long term, absolutely. As I wrote in google/go-github#646:
Once development is closer to completed, and this package is more stable and mature, I think I'll see about factoring out the common GraphQL-specific aspects and the generator into a separate component.
It's likely the only parameters the client generator will need is the URL of a GraphQL endpoint (for introspection) and the name. |
Another request I have (once the package is generalized), is to make the transport pluggable. For example, I am currently using graphql over grpc. So, it would be nice if the package comes with a default HTTP transport, but provides an interface so that we can implement other types of transports. |
Is that what you're asking for, or are you referring to something else? |
In terms of GRPC, we do not use the Here's a pretty good example of a generated GRPC client being used: https://github.com/grpc/grpc-go/blob/master/examples/helloworld/greeter_client/main.go |
I see. That I'm not quite sure how to deal with this, but I want to support it if possible. Mind opening a new specific issue where we can track it and discuss it in more detail? |
This issue has been resolved by shurcooL/graphql@6ac8ee2. |
Going by the examples, it looks like this might be great as a general graphql client that should be able to query any graphql server. Maybe a command line tool can be provided to run an introspection query against a graphql server to generate the appropriate types as well.
The text was updated successfully, but these errors were encountered: