Skip to content

FilterOptions

FilterOptions = object

Filters accepted by client.thing.query and related list operations.

optional shape?: string

Filter to records of this shape name (for example Player).


optional declaredShape?: string

Filter to records that directly declare this Shape.


optional shapeless?: boolean

Only records no Shape certifies (never a Shape itself), to find unstructured data. Exclusive with shape and declaredShape; not available with match, scoped tokens, or sinceGraphSeq.


optional includeValidatedShapes?: boolean

Include the full certified Shape closure on each returned item.


optional kind?: (typeof READ_KIND_FILTERS)[number]

Filter to records of this kind. Results project only shape or thing; assertion and collection remain input aliases during their retirement windows. Assertions carry aboutWref + affirmedWrefs; collections carry collections.


optional about?: string

Filter assertions whose about target wref matches the supplied value.


optional affirmedAbout?: string

Filter to active assertions whose current version affirms exactly this pinned target version (Shape/name@vN). Pinned-only. Works with match globs, scoped tokens, search, and count: candidates come from the search index, membership is decided in PostgreSQL before pagination.


optional match?: string

Glob pattern matched against record names (for example Player/*).


optional includeRetracted?: boolean

Include retracted versions in the result set.


optional limit?: number

Maximum records returned per page.


optional cursor?: string

Pagination cursor returned by the prior call.


optional componentRef?: string

Filter to records attributed to this installed component’s Org/Name ref.


optional excludeComponents?: boolean

Exclude records attributed to any component.


optional excludeInfraShapes?: boolean

Exclude internal infrastructure shapes from the result set.


optional resolveCollections?: boolean

Expand collection targets to their members in the result.


optional role?: "from" | "to" | "ends"

Keep collection-resolved assertions where the target occupies this role.


optional where?: WherePredicate[]

Field-value WHERE predicates (ANDed). Each predicate must target a pinned/ready field for typed-index routing; unavailable or unindexable fields return a machine-readable field-index error. Up to 8 predicates per call.


optional sinceGraphSeq?: number

Strict lower graph sequence for an incremental scan; -1 seeds a complete snapshot.