MCPcopy Create free account
hub / github.com/TanStack/db / constructor

Method constructor

packages/db/src/errors.ts:425–434  ·  view source on GitHub ↗
(valueType: string)

Source from the content-addressed store, hash-verified

423
424export class InvalidWhereExpressionError extends QueryBuilderError {
425 constructor(valueType: string) {
426 super(
427 `Invalid where() expression: Expected a query expression, but received a ${valueType}. ` +
428 `This usually happens when using JavaScript's comparison operators (===, !==, <, >, etc.) directly. ` +
429 `Instead, use the query builder functions:\n\n` +
430 ` ❌ .where(({ user }) => user.id === 'abc')\n` +
431 ` ✅ .where(({ user }) => eq(user.id, 'abc'))\n\n` +
432 `Available comparison functions: eq, gt, gte, lt, lte, and, or, not, like, ilike, isNull, isUndefined`,
433 )
434 }
435}
436
437// Query Compilation Errors

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected