Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add object support for 'and' and 'or' functions. Closes #344 #583

Merged
merged 5 commits into from
Jul 14, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix github suggestion mistakes
  • Loading branch information
koskimas committed Jul 14, 2023
commit 3864cbaec5539ffdd4fda1d94ca7f69839acc561
2 changes: 2 additions & 0 deletions src/expression/expression-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 870,7 @@ export function createExpressionBuilder<DB, TB extends keyof DB>(
): ExpressionWrapper<DB, TB, SqlBool> {
if (isReadonlyArray(exprs)) {
return new ExpressionWrapper(parseFilterList(exprs, 'and'))
}

return new ExpressionWrapper(parseFilterObject(exprs, 'and'))
},
Expand All @@ -879,6 880,7 @@ export function createExpressionBuilder<DB, TB extends keyof DB>(
): ExpressionWrapper<DB, TB, SqlBool> {
if (isReadonlyArray(exprs)) {
return new ExpressionWrapper(parseFilterList(exprs, 'or'))
}

return new ExpressionWrapper(parseFilterObject(exprs, 'or'))
},
Expand Down
Loading