MongooseBulkWriteOptions is missing the strict
flag
#14234
Labels
typescript
Types or Types-test related issue / Pull Request
Milestone
Prerequisites
Mongoose version
8.0.3
Node.js version
18
MongoDB server version
5
Typescript version (if applicable)
N/A
Description
I noticed that Mongoose was removing keys from update operations when using bulkWrite. A quick search led me to this: #8778. It seems that a
strict
flag was exposed on MongooseBulkWriteOptions to address the problem, but later versions removed it again.I checked and the flag is still used in the code, and if I bypass type checks it actually works!
Is this an intentional reversal? If not, I propose to restore the type.
Steps to Reproduce
Expected Behavior
No response
The text was updated successfully, but these errors were encountered: