@dxos/echo
    Preparing search index...

    Function setParent

    • Sets the parent of an object. If a parent (or any transitive parent) is deleted, the object will be deleted. Only objects are allowed to have a parent.

      The parent must hold a ref to the child (in its data, or in an object annotation — e.g. Agent.CompanionSessionAnnotation); a ref-less edge currently only warns while call sites are swept.

      Parameters

      Returns Obj.Unknown & InternalObjectProps

      O(n) in parent size: scans the parent data and annotations for a ref to the child before the O(1) write.