Query

protocol Query<Element> : Sendable

Represents a query against the User’s home graph.

  • Undocumented

    Declaration

    Swift

    associatedtype Element : Hashable, Sendable
  • Returns a Publisher that emits each object individually. Initial and future state is emitted.

    Declaration

    Swift

    func stream() -> AnyPublisher<HomeObjectUpdate<Element>, HomeError>
  • Returns a Publisher that emits the current result as a Set of objects. Each emitted Set represents the current state of the User’s object graph.

    Declaration

    Swift

    func batched() -> AnyPublisher<Set<Element>, HomeError>
  • Returns the current result as a Set of objects.

    Declaration

    Swift

    func list() async throws -> Set<Element>