Class: GraphqlUtil::Client

Inherits:
GraphQL::Client
  • Object
show all
Defined in:
lib/graphql_util/client.rb

Instance Method Summary collapse

Instance Method Details

#query(parsed_query, variables: {}) ⇒ GraphQL::Client::Response

Performs a GraphQL Query and handles the response

Parameters:

  • parsed_query (String)

    GraphQL parsed query

  • variables (Hash) (defaults to: {})

    GraphQL query params

Returns:

  • (GraphQL::Client::Response)

    Request Response



14
15
16
# File 'lib/graphql_util/client.rb', line 14

def query(parsed_query, variables: {})
  super(parsed_query, variables: variables, context: {})
end