QueryResult
Defined in: QueryCache.ts:8
A live, iterable set of entities matching a query filter.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new QueryResult(
filter):QueryResult
Defined in: QueryCache.ts:15
Internal
Parameters
Section titled “Parameters”filter
Section titled “filter”QueryFilter
Returns
Section titled “Returns”QueryResult
Properties
Section titled “Properties”_entities
Section titled “_entities”
readonly_entities:Set<Entity>
Defined in: QueryCache.ts:10
Internal
_filter
Section titled “_filter”
readonly_filter:QueryFilter
Defined in: QueryCache.ts:12
Internal
Accessors
Section titled “Accessors”Get Signature
Section titled “Get Signature”get first():
Entity|undefined
Defined in: QueryCache.ts:30
Get the first match (useful for singleton queries).
Returns
Section titled “Returns”Entity | undefined
Get Signature
Section titled “Get Signature”get size():
number
Defined in: QueryCache.ts:25
Number of matching entities.
Returns
Section titled “Returns”number
Methods
Section titled “Methods”[iterator]()
Section titled “[iterator]()”[iterator]():
Iterator<Entity>
Defined in: QueryCache.ts:20
Iterate matching entities.
Returns
Section titled “Returns”Iterator<Entity>
toArray()
Section titled “toArray()”toArray():
Entity[]
Defined in: QueryCache.ts:36
Convert to array (allocates).
Returns
Section titled “Returns”Entity[]