graphql-client icon indicating copy to clipboard operation
graphql-client copied to clipboard

A Ruby library for declaring, composing and executing GraphQL queries

Results 84 graphql-client issues
Sort by recently updated
recently updated
newest added

Summary - Fx `GraphQL::Client::Definition#definition_name` for Ruby 3.x - Add test case for `GraphQL::Client::Definition#definition_name` - Fix test case for Ruby 3.x - Auto correct by Rubocop - Add Ruby 2.7, 3.0...

When trying to parse a mutation like this ```graphql mutation SaveUser { saveUser(id: 12345, name: "new...name") { id } } ``` `GraphQL::Client#parse` raises `GraphQL::Client::ValidationError: uninitialized constant name` It seems to...

`constants.include?` allocate an array every time and does an `O(N)` search. `const_defined?` saves that allocation and does an `O(1)` lookup. Additionally it's more correct since it will return `true` for...

This looked to be an error in the example

A hasura-generated endpoint I work with is authenticated and requires a header `"x-api-key" => api_key` I have a client class which takes in a `client_name` and looks up some configuration...

Hi, When the introcspection endpoint returns a 404 GraphQL::Client#dump_schema raises a KeyError. This pull request reuses the error-handling from GraphQL::Client#query in dump_schema to properly handle errors. If an error is...

Hi! I'm just trying out "graphql-client" gem and I hit the `GraphQL::Client::DynamicQueryError`: https://github.com/github/graphql-client/blob/master/guides/dynamic-query-error.md I'm wondering why, especially in development, when I'm trying out the API in the console, this error...

I have a GraphQL interface I'm writing a query against. The query executes successfully, but I get an `InvariantError` from here: https://github.com/github/graphql-client/blob/8fb3a8a75e90212d41e5fcf42305e8afac7599fc/lib/graphql/client/schema/possible_types.rb#L44 After looking at the code, it seems like...

I have an issue with query, it states the error from topic: `KeyError: key not found: "data"`. In the playground I can make the request without problems. I'm not quite...

All links on git.io will stop redirecting after April 29, 2022: https://github.blog/changelog/2022-04-25-git-io-deprecation/ Replace all git.io links with their actual URLs.