Class: GraphQL::Relay::Mutation::DeprecatedMutationResolve

Inherits:
Object
  • Object
show all
Defined in:
lib/graphql/relay/mutation.rb

Instance Method Summary collapse

Constructor Details

#initialize(two_argument_resolve) ⇒ DeprecatedMutationResolve

Returns a new instance of DeprecatedMutationResolve.


180
181
182
# File 'lib/graphql/relay/mutation.rb', line 180

def initialize(two_argument_resolve)
  @two_argument_resolve = two_argument_resolve
end

Instance Method Details

#call(obj, args, ctx) ⇒ Object


184
185
186
# File 'lib/graphql/relay/mutation.rb', line 184

def call(obj, args, ctx)
  @two_argument_resolve.call(args[:input], ctx)
end