Class QueryResult<T>

A result of a Query.

Type Parameters

Constructors

  • Creates a new query result.

    Type Parameters

    Parameters

    • bitnode: Bitnode

      The bitnode to use for the query.

    • id: string

      The ID of the query.

    • ctor: hologramCtor<T>

      The constructor of the hologram type.

    • query: Query

      The query to use.

    Returns QueryResult<T>

Properties

_added: Subject<T> = ...
_id: string
_initialDone: Subject<void> = ...
_query: Query
_removed: Subject<T> = ...
_set: Map<string, T> = ...
bitnode: Bitnode

The bitnode to use for the query.

The constructor of the hologram type.

Accessors

  • get added(): Subject<T>
  • Subject that emits when a hologram is added to the result.

    Returns Subject<T>

  • get initialDone(): Subject<void>
  • Subject that emits when the initial result is done.

    Returns Subject<void>

  • get query(): Query
  • The Query used for this result.

    Returns Query

  • get removed(): Subject<T>
  • Subject that emits when a hologram is removed from the result.

    Returns Subject<T>

  • get set(): T[]
  • The set of holograms in the result.

    Returns T[]

Methods

  • Detaches the query from the bitnode, stopping the result from updating.

    Returns Promise<void>

Generated using TypeDoc