Interface: TriggerOptions
Options for the @trigger
annotation.
Properties
collection
• collection: string
Name of the collection to trigger on.
id
• Optional
id: string
The ID of the trigger. Should be unique.
If not used ClassName.FunctionName
is used as an ID.
integrationId
• Optional
integrationId: string
The ID of the integration to trigger on. If not provided, the built_in_db
integration is used.
mutationTypes
• Optional
mutationTypes: MutationType
[]
Types of mutations processed by the function annotated as @trigger
.
If not defined the function is called for all kinds of mutations.