Skip to content

Class: ResourceReferenceQueryBuilder

@flyze/lib-data-store 3.0.0-alpha.55· latest

Defined in: projects/lib-data-store/src/lib/flyze-api/gridify-filter/resource-reference.filter.ts:20

new ResourceReferenceQueryBuilder(options?): ResourceReferenceQueryBuilder

Defined in: node_modules/@flyze/lib-db-models/gridify-filter/abstract.filter.d.ts:100

AbstractQueryBuilderOptions<ResourceReferenceQueryFilterKeys, ResourceReferenceQuery>

ResourceReferenceQueryBuilder

ExecutableQueryBuilder< ResourceReferenceQueryFilterKeys, ResourceReferenceQuery >.constructor

protected readonly _CurrentGroup: FilterCollection<ResourceReferenceQueryFilterKeys>[]

Defined in: node_modules/@flyze/lib-db-models/gridify-filter/abstract.filter.d.ts:59

ExecutableQueryBuilder._CurrentGroup


protected _paginationOptIn: boolean

Defined in: node_modules/@flyze/lib-db-models/gridify-filter/abstract.filter.d.ts:66

Tracks whether the caller explicitly invoked setPage / setPageSize (or constructed the builder from a query/builder that had explicit pagination). When false, the executor treats the query as “no pagination” so callers can still select all rows.

ExecutableQueryBuilder._paginationOptIn

get dialect(): QueryDialect

Defined in: node_modules/@flyze/lib-db-models/gridify-filter/abstract.filter.d.ts:92

Wire-format dialect in use. Exposed (read-only) so cross-dialect merge / copy-from guards can compare ids.

QueryDialect

ExecutableQueryBuilder.dialect


get logicalOperator(): object

Defined in: node_modules/@flyze/lib-db-models/gridify-filter/abstract.filter.d.ts:84

object

readonly And: ","

readonly Or: ”|”

ExecutableQueryBuilder.logicalOperator


get operator(): object

Defined in: node_modules/@flyze/lib-db-models/gridify-filter/abstract.filter.d.ts:67

object

readonly Contains: "=*"

readonly EndsWith: "$"

readonly Equal: "="

readonly fyzGlob: "#Glob"

readonly fyzRegex: "#Reg"

readonly fyzRegex64: "#Reg64"

readonly GreaterThan: ">"

readonly GreaterThanOrEqual: ">="

readonly LessThan: "<"

readonly LessThanOrEqual: "<="

readonly NotContains: "!*"

readonly NotEndsWith: "!$"

readonly NotEqual: "!="

readonly NotStartsWith: "!^"

readonly StartsWith: "^"

ExecutableQueryBuilder.operator


get query(): QUERY

Defined in: node_modules/@flyze/lib-db-models/gridify-filter/abstract.filter.d.ts:99

Read-only access to the most recent build result. Lazily computes (and caches) when called on a dirty builder. Mirrors the gridify-compatible query field so existing call sites (e.g. base.query.filter) continue to compile.

QUERY

ExecutableQueryBuilder.query

addCondition(field, operator, value, caseSensitive?, escapeValue?): this

Defined in: node_modules/@flyze/lib-db-models/gridify-filter/abstract.filter.d.ts:118

Add a condition to the filter - default behavior

ResourceReferenceQueryFilterKeys

the field to filter on

ConditionalOperator

the operator to use

the value to compare against

string | number | boolean

boolean

whether the comparison is case sensitive defaults to true

boolean

whether to escape the value defaults to true

this

ExecutableQueryBuilder.addCondition

addCondition(field, operator, value, caseSensitive?, escapeValue?): this

Defined in: node_modules/@flyze/lib-db-models/gridify-filter/abstract.filter.d.ts:128

Experimental

Extended addCondition to support multiple values as OR grouped conditions

ResourceReferenceQueryFilterKeys

the field to filter on

ConditionalOperator

the operator to use

the value to compare against

string[] | number[] | boolean[]

boolean

whether the comparison is case sensitive defaults to true

boolean

whether to escape the value defaults to true

this

ExecutableQueryBuilder.addCondition


addOrderBy(field, descending?): this

Defined in: node_modules/@flyze/lib-db-models/gridify-filter/abstract.filter.d.ts:109

ResourceReferenceQueryFilterKeys

boolean

this

ExecutableQueryBuilder.addOrderBy


and(_optional?): this

Defined in: node_modules/@flyze/lib-db-models/gridify-filter/abstract.filter.d.ts:138

Adds an AND logical operator.

boolean

Kept for signature compatibility with the previous gridify-backed implementation. The standalone builder does not validate operator placement; the dialect’s postProcessFilter hook handles trailing-operator artefacts.

this

ExecutableQueryBuilder.and


build(): ResourceReferenceQuery

Defined in: node_modules/@flyze/lib-db-models/gridify-filter/abstract.filter.d.ts:148

Serialise the current state via the configured dialect. Result is cached until the next mutation; repeated calls return structurally cloned copies so callers can safely mutate the returned object.

ResourceReferenceQuery

ExecutableQueryBuilder.build


buildExecutableExpression(): ExecutableQuery<ResourceReferenceQueryFilterKeys, ResourceReferenceQuery>

Defined in: node_modules/@flyze/lib-db-models/gridify-filter/executable.filter.d.ts:8

Based on the current FilterCollection, builds an ExecutableQuery. A executable query is ‘abstract syntax tree’ representation of the query that can be executed against data.

ExecutableQuery<ResourceReferenceQueryFilterKeys, ResourceReferenceQuery>

ExecutableQueryBuilder.buildExecutableExpression


endGroup(): this

Defined in: node_modules/@flyze/lib-db-models/gridify-filter/abstract.filter.d.ts:130

this

ExecutableQueryBuilder.endGroup


hasExplicitPagination(): boolean

Defined in: node_modules/@flyze/lib-db-models/gridify-filter/abstract.filter.d.ts:108

Whether setPage / setPageSize was ever called on this builder (or inherited via copy-from / non-default values on a source query). When false, in-memory executors should skip pagination entirely.

boolean

ExecutableQueryBuilder.hasExplicitPagination


hasFilter(): boolean

Defined in: node_modules/@flyze/lib-db-models/gridify-filter/abstract.filter.d.ts:150

Checks if any filter exists in the current query

boolean

ExecutableQueryBuilder.hasFilter


hasFilterOnKey(key): boolean

Defined in: node_modules/@flyze/lib-db-models/gridify-filter/abstract.filter.d.ts:152

Checks if a filter on the given key exists in the current query

ResourceReferenceQueryFilterKeys

boolean

ExecutableQueryBuilder.hasFilterOnKey


merge(base): this

Defined in: node_modules/@flyze/lib-db-models/gridify-filter/abstract.filter.d.ts:157

Consumes another query builder, query object or filter string and merges its filters into the current builder.

string | ResourceReferenceQuery | AbstractQueryBuilder<ResourceReferenceQueryFilterKeys, ResourceReferenceQuery>

this

ExecutableQueryBuilder.merge


or(_optional?): this

Defined in: node_modules/@flyze/lib-db-models/gridify-filter/abstract.filter.d.ts:142

Adds an OR logical operator. See and() for the _optional note.

boolean

this

ExecutableQueryBuilder.or


setPage(page): this

Defined in: node_modules/@flyze/lib-db-models/gridify-filter/abstract.filter.d.ts:101

number

this

ExecutableQueryBuilder.setPage


setPageSize(size): this

Defined in: node_modules/@flyze/lib-db-models/gridify-filter/abstract.filter.d.ts:102

number

this

ExecutableQueryBuilder.setPageSize


startGroup(): this

Defined in: node_modules/@flyze/lib-db-models/gridify-filter/abstract.filter.d.ts:129

this

ExecutableQueryBuilder.startGroup