@squidcloud/backend
    Preparing search index...

    Interface TriggerOptions

    Options for the @trigger annotation.

    interface TriggerOptions {
        collection: string;
        id?: string;
        integrationId?: string;
        mutationTypes?: ("delete" | "insert" | "update")[];
    }
    Index

    Properties

    collection: string

    Name of the collection to trigger on.

    id?: string

    The ID of the trigger. Should be unique. If not used ClassName.FunctionName is used as an ID.

    integrationId?: string

    The ID of the integration to trigger on. If not provided, the built_in_db integration is used.

    mutationTypes?: ("delete" | "insert" | "update")[]

    Types of mutations processed by the function annotated as @trigger. If not defined the function is called for all kinds of mutations.