Sanity Library Reference Docs
    Preparing search index...

    One emitted start-watcher, one per watched dataset rather than per definition. Every 'function' or 'durableFunction' autonomous definition a document write can start is listed on every watched dataset's watcher. A 'selfHosted' one is listed on none, and appears in SelfHostedNeeds.startInstances instead.

    interface StartWatcherSpec {
        dataset: string;
        definitions: string[];
        filter: string;
        name: string;
        projectId: string;
        subjectTypes: string[];
    }
    Index

    Properties

    dataset: string
    definitions: string[]
    filter: string
    name: string
    projectId: string
    subjectTypes: string[]

    The types the trigger narrows to. Empty when one of definitions accepts any document type, and the trigger then matches every create.