We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
if
drizzle-orm
0.30.10
drizzle-kit
0.21.1
The new if feature doesn't seem to work in one of my use cases:
My column is: title: text('title').notNull() The following code results in an error that reads:
title: text('title').notNull()
Error: notInArray requires at least one value
const excludeTags: any[] = []; const tags = await db.query.listingTags.findMany({ where: notInArray(listingTags.title, excludeTags).if(excludeTags.length) });
Where query is ignored
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What version of
drizzle-orm
are you using?0.30.10
What version of
drizzle-kit
are you using?0.21.1
Describe the Bug
The new
if
feature doesn't seem to work in one of my use cases:My column is:
title: text('title').notNull()
The following code results in an error that reads:
Expected behavior
Where query is ignored
Environment & setup
No response
The text was updated successfully, but these errors were encountered: