Module: Ecoportal::API::GraphQL::Input::WorkflowCommand::AddField

Defined in:
lib/ecoportal/api/graphql/input/workflow_command/add_field.rb

Constant Summary collapse

SCHEMA_VERSION =
'20260605'.freeze
VALID_KEYS =

VERIFIED against the live schema dump (WorkflowAddFieldInput, 20260605): the create command accepts ONLY these keys. There is NO description and NO required field on WorkflowAddFieldInput. description is instead a top-level key of WorkflowEditFieldConfigurationInput, so a field's description is persisted via a follow-up editFieldConfiguration command (see Builder::TemplateBuilder / Diff::CommandSynthesizer). required has NO input key anywhere in the schema (not on AddField, not on editFieldConfiguration top-level or any byType sub-input) and so cannot be persisted through the workflow command bus at all — callers must treat it as a read-only/unsupported attribute. Do NOT add these keys here (the server rejects them).

%i[placeholderId fieldType label stageId sectionId column].freeze

Class Method Summary collapse

Class Method Details

.build(**kwargs) ⇒ Object



19
20
21
# File 'lib/ecoportal/api/graphql/input/workflow_command/add_field.rb', line 19

def self.build(**kwargs)
  kwargs.slice(*VALID_KEYS).compact
end