@dxos/echo
    Preparing search index...

    Function getURI

    • Get the canonical URI of the relation. Returns URI.URI — today always an EID, but future entity kinds may surface other URI schemes; narrow with EID.parse(uri) or DXN.tryMake(uri) at the point of use. Accepts both reactive relations and snapshots.

      Parameters

      • entity: Relation.Unknown | Relation.Snapshot<Relation.Unknown>
      • Optionaloptions: GetURIOptions

        Controls the URI form returned by getUri and the public *.getURI helpers.

        • 'named' — Registry key URI (dxn:<meta.key>) when the entity has a key in its meta; falls back to the default EID.
        • 'absolute' — Fully-qualified EID with space id (echo://<spaceId>/<entityId>); falls back when no space is available.
        • 'relative' — Local EID without space id (echo:/<entityId>).

        Omitting prefer preserves the existing behaviour.

        • Optionalprefer?: "named" | "absolute" | "relative"

      Returns URI.URI

      O(1); returns the stored URI, constructing (and allocating) one only when options.prefer asks for another form.