Class: Ecoportal::API::GraphQL::Mutation::Page::UpdateVariableBindings
- Inherits:
-
Logic::Mutation
- Object
- Logic::BaseQuery
- Logic::Mutation
- Ecoportal::API::GraphQL::Mutation::Page::UpdateVariableBindings
- Defined in:
- lib/ecoportal/api/graphql/mutation/page/update_variable_bindings.rb
Constant Summary collapse
- SCHEMA_VERSION =
'20260605'.freeze
Instance Method Summary collapse
Methods inherited from Logic::Mutation
Instance Method Details
#query(page_id:, variable_bindings:, **kargs, &block) ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/ecoportal/api/graphql/mutation/page/update_variable_bindings.rb', line 13 def query(page_id:, variable_bindings:, **kargs, &block) bindings = variable_bindings.map { |b| b.respond_to?(:to_h) ? b.to_h : b } super( input: { pageId: page_id, variableBindings: bindings }, **kargs, &block ) end |