Document.prototype.$set doesn't work per the documenation when passing path as an object of key/value pairs #12157
Closed
2 tasks done
Labels
confirmed-bug
We've confirmed this is a bug in Mongoose and will fix it.
Prerequisites
Mongoose version
6.3.4
Node.js version
16.x.x
MongoDB server version
4.2
Description
The document.set documentation allows for passing either (path: string, value: string, type: string, options: object)
or
(path: object, type: string, option: object)
or
(path: object, options: object)
with type always optional.
It currently ignores passing path as an object.
Steps to Reproduce
The text was updated successfully, but these errors were encountered: