Class: Ecoportal::API::GraphQL::Mutation::Template::CreateRelatedPage

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

Constant Summary collapse

SCHEMA_VERSION =
'20260605'.freeze

Instance Method Summary collapse

Methods inherited from Logic::Mutation

#response_class

Instance Method Details

#query(template_id:, title:, register_id:, patch_ver:, filters: nil, **kargs, &block) ⇒ Object



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

def query(template_id:, title:, register_id:, patch_ver:, filters: nil, **kargs, &block)
  input = {
    templateId: template_id,
    title:      title,
    registerId: register_id,
    patchVer:   patch_ver
  }
  input[:filters] = filters if filters
  super(input: input, **kargs, &block)
end