mongoose 8.8.3 breaks on bulkSave: TypeError: Cannot set properties of undefined (setting '__subdocs') #15062
Closed
2 tasks done
Labels
has repro script
There is a repro script, the Mongoose devs need to confirm that it reproduces the issue
Milestone
Prerequisites
Mongoose version
8.8.3
Node.js version
22
MongoDB server version
8.0.3
Typescript version (if applicable)
5.7.2
Description
I've got this error when I try to bulk save a list of documents:
Apparently this line was recently added to the source code.
https://github.com/Automattic/mongoose/blame/bb98dcf859b2cf0cc7da9d16d9d09afe445321f3/lib/plugins/saveSubdocs.js#L31
Steps to Reproduce
Expected Behavior
No response
The text was updated successfully, but these errors were encountered: