You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use deleteOne in a transaction, it aborts and gives me this error:
(node:42891) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): MongooseError: Callback must be a function, got [object Object]
(node:42891) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
When I use deleteOne in a transaction, it aborts and gives me this error:
However, it works fine with deleteMany
This is the gist to reproduce the problem.
I'm using Node.js 8.9.3, Mongoose 5.5.11 and MongoDB 4.0.9 on Atlas
The text was updated successfully, but these errors were encountered: