Sanity Library Reference Docs
    Preparing search index...
    • Matches a document whose _type is one of subjectTypes, narrowed to the writes updates accepts. An empty subjectTypes means a subject entry declares no types, and the leg becomes every document except the engine's own. That admits more than the engine accepts: the rest of the reserved sanity. and system. namespaces reaches the watcher, and acceptsDocumentType declines it.

      A prefilter only, so a match does not mean a definition starts: the watcher re-checks applicability. Throws on a type outside EMITTED_NAME_PATTERN, on a path holding a segment assertEmittablePath rejects, and on a changedPaths kind carrying no path, which names no update and is the noUpdate kind instead.

      Parameters

      Returns string