Class: Stigg::StiggHTTPAdapter

Inherits:
Graphlient::Adapters::HTTP::FaradayAdapter
  • Object
show all
Defined in:
lib/stigg/client.rb

Instance Method Summary collapse

Instance Method Details

#execute(document:, operation_name:, variables:, context:) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/stigg/client.rb', line 9

def execute(document:, operation_name:, variables:, context:)
  headers = context[:headers] || {}
  headers.merge!({'x-graphql-operations-name': Stigg::OperationsNames[operation_name]})
  context[:headers] = headers

  super
end