Class: Ecoportal::API::GraphQL::Mutation::Page::ExecuteForceCommands Deprecated
- Inherits:
-
Logic::Mutation
- Object
- Logic::BaseQuery
- Logic::Mutation
- Ecoportal::API::GraphQL::Mutation::Page::ExecuteForceCommands
- Defined in:
- lib/ecoportal/api/graphql/mutation/page/execute_force_commands.rb
Overview
Kept for backwards compatibility with existing execute_force_commands callers.
Delegates to the executeWorkflowCommands mutation. New callers should use Builder::Page#execute_workflow_commands or Mutation::Page::ExecuteWorkflowCommands directly.
Applies force workflow commands (editForce, addBinding, removeBinding, etc.) to a page via the executeWorkflowCommands mutation.
Usage: Mutation::Page::ExecuteForceCommands.new(client).query( id: page.id, patchVer: page.patchVer, commands: force_collection.pending_commands )
commands is an array of hashes, each with exactly one key matching a WorkflowCommandInput one_of field: { editForce: { id:, customScript: } } { addBinding: { forceId:, name:, referenceId:, type: } } { removeBinding: { id: } } { removeForce: { id: } }
Instance Method Summary collapse
Methods inherited from Logic::Mutation
Instance Method Details
#query(id:, patch_ver:, commands:, **kargs, &block) ⇒ Object
31 32 33 34 35 36 37 |
# File 'lib/ecoportal/api/graphql/mutation/page/execute_force_commands.rb', line 31 def query(id:, patch_ver:, commands:, **kargs, &block) super( input: { id: id, patchVer: patch_ver, commands: commands }, **kargs, &block ) end |