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.
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'sClientConfigResourcediscriminator. A GDR id is a typed URI:dataset:::
canvas::
media-library::
dashboard::
The
typefield carries the doc's schema_typeso consumers don't need a separate lookup to know what they're pointing at.