class Lucid::Shopify::GraphQLPostRequest

Public Class Methods

new(credentials, query, variables: {}) click to toggle source

@private

@param credentials [Credentials] @param query [String] the GraphQL query @param variables [Hash] the GraphQL variables (if any)

@see graphql.org/graphql-js/graphql-clients @see graphql.org/graphql-js/mutations-and-input-types

Calls superclass method
# File lib/lucid/shopify/graphql_post_request.rb, line 16
def initialize(credentials, query, variables: {})
  super(credentials, :post, 'graphql', json: {
    query: query,
    variables: variables,
  })
end