Skip to content

MutationOptions

Shorthand declarations for AppBuilder.addMutation.

HandlerOptions for the accepted forms

readonly optional input?: InputDefinition | Record<string, PrimitiveDataType | MandatoryPrimitiveDataType>

Input Properties keyed by name, each given as a primitive data type. A trailing ! marks the Property mandatory, for example 'id!'. When omitted, the operation declares no input.

undefined

HandlerOptions.input


readonly optional output?: PrimitiveDataType | OutputDefinition | TemplateBuilder | TemplateBuilder[] | TemplateDefinition | TemplateDefinition[] | "template"

Result shape of the operation. A data type such as 'boolean' declares a single value, one Template (as a TemplateBuilder or Definition) declares an Item of that Template, an array of Templates declares an Item of any of them, 'template' declares a Template Definition, and an OutputDefinition is used as declared. When omitted, the operation returns nothing.

undefined

HandlerOptions.output