-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document.set doesn't work on nested Maps or plain non-strict objects. #13327
Labels
confirmed-bug
We've confirmed this is a bug in Mongoose and will fix it.
Milestone
Comments
IslandRhythms
added
the
confirmed-bug
We've confirmed this is a bug in Mongoose and will fix it.
label
Apr 26, 2023
vkarpov15
added a commit
that referenced
this issue
Apr 28, 2023
…ocument path from the top-level document Re: #13327
vkarpov15
added a commit
that referenced
this issue
May 4, 2023
fix(document): handle calling `set()` underneath a strict: false subdocument path from the top-level document
We fixed one case with #13339, we'll work on the others next week. |
vkarpov15
added a commit
that referenced
this issue
May 7, 2023
vkarpov15
added a commit
that referenced
this issue
May 8, 2023
fix(document): handle set() from top-level underneath a map of mixed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prerequisites
Mongoose version
7.0.5
Node.js version
v16.18.1
MongoDB server version
mongo:5.0.9
Typescript version (if applicable)
No response
Description
Deep
Document.set
using a key with 2 more dots in it likex.set('a.b.c', 1)
doesn't seem to work for:strict: false
.It should. It does work for just a top level Mixed type.
Steps to Reproduce
Gives:
Expected Behavior
All the Document.set calls should work.
The text was updated successfully, but these errors were encountered: