Sanity Library Reference Docs
    Preparing search index...
    WatchedUpdates:
        | { kind: "noUpdate" }
        | { kind: "changedPaths"; paths: readonly string[] }
        | { kind: "everyUpdate" }

    Which updates to a watched document a start watcher's trigger accepts. Every create is accepted whatever the kind: a document no start.filter reads a field of can still be applicable the moment it exists.

    • noUpdate: no start.filter reads a field of the written document an update can change, nor another document or the clock, so no update can change which definitions it is applicable for. _type is such a field: the lake rejects a write that changes it.
    • changedPaths: an update is accepted when it changed one of paths.
    • everyUpdate: a start.filter's truth can change without a write to the document, so no update can be ruled out. That is a read of the document in a way no field path describes, a read of any other document, or a read of $now, whatever else the filter reads.