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 c1ea275 commit a9f34e9Copy full SHA for a9f34e9
1 file changed
src/resolvers/removeMany.ts
@@ -94,7 +94,7 @@ export function removeMany<TSource = any, TContext = any, TDoc extends Document
94
95
const res = await beforeQueryHelper(resolveParams);
96
97
- if (res.deletedCount) {
+ if (typeof res.deletedCount === 'number') {
98
// mongoose v6
99
return {
100
numAffected: res.deletedCount,
0 commit comments