Sanity Library Reference Docs
    Preparing search index...
    • A GDR URI stripped back to its bare document _id; a non-GDR string passes through unchanged. The one canonical "URI → bare id" transform — use it wherever a stored ref (which may be a full GDR URI, or already bare) must become a lake-queryable _id.

      Parameters

      • id: string

      Returns string