MutationHandler
MutationHandler<
TInput,TOutput,TCurrent,TContext> = (input,current,ctx) =>Promise<TOutput>
Performs the write behavior of a Mutation and returns a result for the Runtime to marshal against the output declaration.
Type Parameters
Section titled “Type Parameters”TInput
Section titled “TInput”TInput = any
Parsed input shape; the compiler derives it from the input declaration.
TOutput
Section titled “TOutput”TOutput = any
Result shape; the compiler derives it from the output declaration.
TCurrent
Section titled “TCurrent”TCurrent = WriteAppInstance
App instance handed to the handler.
TContext
Section titled “TContext”TContext = WriteRuntimeInstance
Runtime instance handed to the handler.
Parameters
Section titled “Parameters”TInput
Input parsed against the Mutation’s input declaration.
current
Section titled “current”TCurrent
The App that declared the Mutation, with write access to its Items.
TContext
Write Runtime bound to the Workspace of the call.
Returns
Section titled “Returns”Promise<TOutput>
The result the Runtime checks against the output declaration.

