Sanity Library Reference Docs
    Preparing search index...

    The subject document a workflow is "about" — the article under review, the release being shipped, the KYC application being processed.

    Sourced from the workflow's subject-kind field entry (deterministic, whatever the entry is named); a doc.ref entry named subject is the fallback for definitions that predate the kind. Optional because:

    • Some workflows declare no subject entry.
    • Some subject docs don't carry a title field. In that case ref is still populated so the LLM can fall back to it as an identifier.
    interface ProjectedSubject {
        ref: string;
        title?: string;
    }
    Index

    Properties

    Properties

    ref: string

    GDR URI of the subject doc — what *[_id == extractDocumentId(ref)] resolves.

    title?: string

    Subject doc's title field, when present. Often the most useful disambiguator when multiple instances exist of the same workflow.