We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4aa6ecf commit d9455e5Copy full SHA for d9455e5
1 file changed
drizzle-orm/src/sql/expressions/conditions.ts
@@ -174,7 +174,10 @@ export function or(
174
* .where(not(inArray(cars.make, ['GM', 'Ford'])))
175
* ```
176
*/
177
-export function not(condition: SQLWrapper): SQL {
+export function not(condition: SQLWrapper | undefined): SQL | undefined {
178
+ if (condition === undefined) {
179
+ return undefined;
180
+ }
181
return sql`not ${condition}`;
182
}
183
0 commit comments