Class: Giraph::Remote::Mutation

Inherits:
Query
  • Object
show all
Defined in:
lib/giraph/remote/mutation.rb

Overview

Field resolver to plug a remote GraphQL mutation root into a local type

Class Method Summary collapse

Methods inherited from Query

#call, #initialize

Constructor Details

This class inherits a constructor from Giraph::Remote::Query

Class Method Details

.bind(endpoint, &block) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/giraph/remote/mutation.rb', line 5

def self.bind(endpoint, &block)
  new(
    endpoint,
    Remote::Connector.new(endpoint),
    &block
  )
end