Skip to content

MutationDefinition

Describes one Mutation: its access Grants, input and output contracts, and the handler that performs the write.

readonly description: string | undefined

Description set with setDescription, or undefined.


readonly grants: GrantDefinition[]

Roles allowed to run the Mutation; a principal needs any one of them.


readonly handler: MutationHandler

The function the Runtime calls with parsed input.


readonly input: InputDefinition

Input contract, or null when the Mutation takes no input.


readonly key: string

Key of the Mutation, unique within its App.


readonly output: OutputDefinition

Output contract, or null when the Mutation returns nothing.


readonly prn: string

PRN of the Mutation, prn::<app>:mutation/<key>.