Sanity Library Reference Docs
    Preparing search index...
    GdrScheme: "dataset" | "canvas" | "media-library" | "dashboard"

    Global Document References (GDR).

    Every cross-document reference in the engine API uses this shape so workflow state can live in one Sanity resource while subjects / ancestors / effect-binding refs point at docs in different resources.

    Resource schemes mirror @sanity/client's ClientConfigResource discriminator. A GDR id is a typed URI:

    dataset::: canvas:: media-library:: dashboard::

    The type field carries the doc's schema _type so consumers don't need a separate lookup to know what they're pointing at.