module Giraph module Remote # Field resolver to plug a remote GraphQL mutation root into a local type class Mutation < Query def self.bind(endpoint, &block) new( endpoint, Remote::Connector.new(endpoint), &block ) end private def query_type 'mutation' end end end end