@dxos/echo
    Preparing search index...

    Function space

    • Scope targeting a space's automerge documents.

      With no spaceId, targets the owning space — i.e. the space of whichever database executes the query — so callers can reference "this space" without looking up its id.

      Parameters

      • Optionaloptions: { id?: string; includeAllFeeds?: boolean }

      Returns QueryAST.SpaceScope

      db.query(Filter.type(Person).from(Scope.space()));            // owning space
      db.query(Filter.type(Person).from(Scope.space({ id: otherSpaceId }))); // a specific space

      O(1); builds a scope node.