Sanity Library Reference Docs
    Preparing search index...
    • Parse a resource-shaped GDR (<type>:<id>, no document part) into the WorkflowResource it names. The one grammar for resource addresses — hosts validate/parse through this instead of hand-rolling the split. Throws on unknown type, extra : parts (that shape is a document GDR — see parseGdr), or a malformed dataset id.

      Parameters

      • uri: string

      Returns WorkflowResource