Add overwriteDiscriminatorKey to API docs for findOneAndUpdate()
, updateOne()
; and findOneAndUpdate()
guide
#14246
Closed
2 tasks done
Labels
docs
This issue is due to a mistake or omission in the mongoosejs.com documentation
Milestone
Prerequisites
Mongoose version
6.12.5
Node.js version
14.18.1
MongoDB server version
3.6.6
Typescript version (if applicable)
No response
Description
In 5.x findOneAndUpdate successfully updates the value of a discriminatorKey field. However, in 6.x it does not
Steps to Reproduce
Repro script:
Expected Behavior
Output in 5.12.5
Output in 6.12.5
6.x must behave like 5.x
The text was updated successfully, but these errors were encountered: