Sanity Library Reference Docs
    Preparing search index...
    • Creates a typed reference to a dataset document. Pass the stable document ID; drafts. and versions.<release>. prefixes throw. Select draft or release content through WorkflowInstance.perspective.

      Type Parameters

      • TType extends string = string

      Parameters

      • __namedParameters: { dataset: string; documentId: string; projectId: string; type: TType }

      Returns GlobalDocumentReference<TType>