QueryResult
Defined in: QueryCache.ts:12
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:19
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:14
Internal
_filter
Section titled “_filter”
readonly_filter:QueryFilter
Defined in: QueryCache.ts:16
Internal
Accessors
Section titled “Accessors”Get Signature
Section titled “Get Signature”get first():
Entity|undefined
Defined in: QueryCache.ts:34
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:29
Number of matching entities.
Returns
Section titled “Returns”number
Methods
Section titled “Methods”[iterator]()
Section titled “[iterator]()”[iterator]():
Iterator<Entity>
Defined in: QueryCache.ts:24
Iterate matching entities.
Returns
Section titled “Returns”Iterator<Entity>
toArray()
Section titled “toArray()”toArray():
Entity[]
Defined in: QueryCache.ts:40
Convert to array (allocates).
Returns
Section titled “Returns”Entity[]
Coding agents: fetch https://yage.dev/llms.txt first and prefer the Markdown references it links over these HTML pages. This page's Markdown counterpart is /llms/packages/core.md.