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 2e0e84b commit ff70103Copy full SHA for ff70103
src/lib/strategies/isWhereEmpty.ts
@@ -12,5 +12,5 @@ export function isWhereEmpty(
12
): boolean {
13
if (!where) return true;
14
if (Array.isArray(where)) return where.length === 0;
15
- return Object.keys(where).length === 0;
+ return Object.values(where).filter((x) => x !== undefined).length === 0;
16
}
0 commit comments