We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Do you want to request a feature or report a bug? Bug
What is the current behavior? When setting a value to a single nested document field
rootDoc.set('anything.subDoc.someField', 12);
The set function is called twice
{ ... someField: { set: function(value) { return value; } } ... }
The first time with this as rootDoc and the second as subDoc.
this
rootDoc
subDoc
If the current behavior is a bug, please provide the steps to reproduce. RunKit Example
What is the expected behavior? Calling only one time.
Please mention your node.js, mongoose and MongoDB version. node: 8.11.3 mongoose: 5.3.7
The text was updated successfully, but these errors were encountered:
Thanks for reporting, will fix asap
Sorry, something went wrong.
test(document): repro #7196
10837d4
751397c
set()
No branches or pull requests
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
When setting a value to a single nested document field
The set function is called twice
The first time with
this
asrootDoc
and the second assubDoc
.If the current behavior is a bug, please provide the steps to reproduce.
RunKit Example
What is the expected behavior?
Calling only one time.
Please mention your node.js, mongoose and MongoDB version.
node: 8.11.3
mongoose: 5.3.7
The text was updated successfully, but these errors were encountered: