Class: Ecoportal::API::GraphQL::Mutation::Template::Update

Inherits:
Logic::Mutation
  • Object
show all
Defined in:
lib/ecoportal/api/graphql/mutation/template/update.rb

Constant Summary collapse

SCHEMA_VERSION =
'20260605'.freeze

Instance Method Summary collapse

Methods inherited from Logic::Mutation

#response_class

Instance Method Details

#query(id:, patch_ver:, commands:, client_mutation_id: nil, **kargs, &block) ⇒ Object



13
14
15
16
17
18
19
20
21
# File 'lib/ecoportal/api/graphql/mutation/template/update.rb', line 13

def query(id:, patch_ver:, commands:, client_mutation_id: nil, **kargs, &block)
  input = { id: id, patchVer: patch_ver, commands: commands }
  input[:clientMutationId] = client_mutation_id unless client_mutation_id.nil?
  super(
    input: input,
    **kargs,
    &block
  )
end