Defined in: packages/db/src/query/expression-helpers.ts:54
Options for customizing how WHERE expressions are parsed
T = any
handlers: object & object;Defined in: packages/db/src/query/expression-helpers.ts:68
Handler functions for different operators. Each handler receives the parsed field path(s) and value(s) and returns your custom format.
Supported operators from TanStack DB:
optional add?: (...args) => T;...any[]
T
optional and?: (...args) => T;...any[]
T
optional avg?: (...args) => T;...any[]
T
optional caseWhen?: (...args) => T;...any[]
T
optional coalesce?: (...args) => T;...any[]
T
optional concat?: (...args) => T;...any[]
T
optional count?: (...args) => T;...any[]
T
optional divide?: (...args) => T;...any[]
T
optional eq?: (...args) => T;...any[]
T
optional gt?: (...args) => T;...any[]
T
optional gte?: (...args) => T;...any[]
T
optional ilike?: (...args) => T;...any[]
T
optional in?: (...args) => T;...any[]
T
optional isNull?: (...args) => T;...any[]
T
optional isUndefined?: (...args) => T;...any[]
T
optional length?: (...args) => T;...any[]
T
optional like?: (...args) => T;...any[]
T
optional lower?: (...args) => T;...any[]
T
optional lt?: (...args) => T;...any[]
T
optional lte?: (...args) => T;...any[]
T
optional max?: (...args) => T;...any[]
T
optional min?: (...args) => T;...any[]
T
optional multiply?: (...args) => T;...any[]
T
optional not?: (...args) => T;...any[]
T
optional or?: (...args) => T;...any[]
T
optional subtract?: (...args) => T;...any[]
T
optional sum?: (...args) => T;...any[]
T
optional upper?: (...args) => T;...any[]
T
optional onUnknownOperator?: (operator, args) => T;Defined in: packages/db/src/query/expression-helpers.ts:77
Optional handler for when an unknown operator is encountered. If not provided, unknown operators throw an error.
string
any[]
T