Skip to content
qubeejs/angular
3.8/API/IOperatorFilter

IOperatorFilter

ArchivedThese are the docs for ng-qubee 3.8. Read the 4.0 docs for @qubeejs/angular.

Defined in: src/lib/interfaces/operator-filter.interface.ts:19

Represents a filter with an explicit operator for the NestJS driver

Operator filters produce query parameters in the format: filter.field=$operator:value

const filter: IOperatorFilter = {
field: 'age',
operator: FilterOperatorEnum.GTE,
values: [18]
};
// Produces: filter.age=$gte:18

field: string

Defined in: src/lib/interfaces/operator-filter.interface.ts:21

The field name to filter on


operator: FilterOperatorEnum

Defined in: src/lib/interfaces/operator-filter.interface.ts:23

The filter operator to apply


values: (string | number | boolean)[]

Defined in: src/lib/interfaces/operator-filter.interface.ts:25

The value(s) for the filter