graphql-client
graphql-client copied to clipboard
A Ruby library for declaring, composing and executing GraphQL queries
After executing a query, the result is an anonymous class with `Schema::ObjectClass` as an ancestor. To prevent from fetching the resource multiple times, ideally it would be nice to store...
The rails configuration for this gem is still a bit flakey. This PR will make it more robust. Next to that it will add the option to configure the path...
A server we are accessing is returning path with nil on certain mutation errors. This gem is blowing up when that happens. Here's the stack trace that can be reproduced...
It'd be handy to have a way to print out the raw JSON from the response, for debugging purposes. Looks like it'd be pretty easy to add that, depending on...
See example below. It seems that the `Name` of a query must adhere to Ruby conventions to be used with this client, but the spec allows for more: https://graphql.github.io/graphql-spec/June2018/#Name ```ruby...
GraphQL requires sub-selections on object/interface/union type fields. For example, given this schema: ```graphql type Query { repository(owner: String!, name: String!): Repository } type Organization { id: ID! } type Repository...
**Gem Versions** ruby 2.6.1p33 (2019-01-30 revision 66950) [x86_64-darwin18] graphql (1.9.2) graphql-client (0.14.0) rspec (3.2.0) rspec-core (3.2.3) **The Error I Receive:** ``` /Users/mac.mccarthy/Automation/lib/broadcasts/broadcast.rb:37: Argument 'name' on InputObject 'BroadcastCreateInput' is required. Expected...
I have an Rails app that is using multiple GraphQL APIs. From what I can tell by reading the code, only a single client can ever be assigned to views...