Sha256: 87d358f2e577cce66cc020c514f4f6626083ddd08cacfa1bb85a6f9f9db898cb

Contents?: true

Size: 297 Bytes

Versions: 2

Compression:

Stored size: 297 Bytes

Contents

# frozen_string_literal: true

module GraphQL
  module Client
    module Query
      class MutationOperation < Operation
        def operation_type
          'mutation'
        end

        def resolver_type
          schema.type(schema.mutation_root_name)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
graphql_client-0.4.1 lib/graphql_client/query/operations/mutation_operation.rb
graphql_client-0.3.3 lib/graphql_client/query/operations/mutation_operation.rb