You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: Update query examples to use eq() helper for boolean comparisons (#1299)
fix(docs): use eq() operator in .where() clauses instead of bare boolean expressions
The .where() clause requires expression objects (via eq(), gt(), etc.),
not raw JavaScript boolean expressions. Bare property references like
`todo.completed` or negated expressions like `!todo.completed` fail
the isExpressionLike() validation at runtime, throwing
InvalidWhereExpressionError.
Fixed in docs/overview.md, docs/guides/schemas.md,
docs/collections/trailbase-collection.md,
docs/reference/classes/BaseQueryBuilder.md, and source JSDoc in
packages/db/src/query/builder/index.ts.
Fixes#1297https://claude.ai/code/session_01VD8cnL4qhw4k5XKaK9qL8L
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments