graphql-client
graphql-client copied to clipboard
A Ruby library for declaring, composing and executing GraphQL queries
Hello! I discovered a tricky error when using `graphql-client (0.13.0)`. Today I make my queries to an external GraphQL API through graphiql. So, normally, my queries are all named. When...
The only place I could find a ruby version requirement for this gem was in the gemspec: https://github.com/github/graphql-client/blob/master/graphql-client.gemspec#L23 This implies the constraint is `>= 2.1.0`, which seems to be false....
Pre-reqs: Have a schema with an enum i.e. `(A|B|C)` Send your request with `variables: { value: "D" }` This sends the request through. If you use playground it wouldn't.
If you try parse a schema from a URL which is partially incorrect you get the horrible invalid token JSON error. I found out sometimes this occurs due to not...
A graphql service was returning '500 Internal Server Error', thats what graphql-client kept printing, on debugging further I figured that they were sending the actual reason in the response body....
Looks like Graphql-client wants queries to be stored in static constants. Is that right? If so - why? And how do I enable dynamic queries?
Using object id was making it very difficult for us to VCR non-constantized graphql calls since the name sent with the query was appended with a different object id in...
Hey there, not sure if it is an issue with whatever http / ruby version we're using but I noticed that my user agent is not properly set as a...
`GraphQL::Client` is raising a `TypeError` when `definition` isn't a `OperationDefinition`. However, error message was using a `definition.class.name` as info what was provided - which was always equal to `GraphQL::Language::Nodes::Document`. This...