Sha256: 57456751e73d66362c11b53e434da3b3d30cf3678a8650152ac7a6e1440363ed

Contents?: true

Size: 386 Bytes

Versions: 1

Compression:

Stored size: 386 Bytes

Contents

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, mutation: true),
          &block
        )
      end

      private

      def query_type
        'mutation'
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
giraph-0.1.0 lib/giraph/remote/mutation.rb