(valueType: string)
| 423 | |
| 424 | export 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 |
nothing calls this directly
no outgoing calls
no test coverage detected