-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Value pushed to array not persisted #7889
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
Milestone
Comments
Closed
jyrkive
added a commit
to jyrkive/mongoose
that referenced
this issue
Jun 12, 2019
jyrkive
added a commit
to jyrkive/mongoose
that referenced
this issue
Jun 12, 2019
jyrkive
added a commit
to jyrkive/mongoose
that referenced
this issue
Jun 12, 2019
Merged
jyrkive
added a commit
to jyrkive/mongoose
that referenced
this issue
Jun 12, 2019
jyrkive
added a commit
to jyrkive/mongoose
that referenced
this issue
Jun 12, 2019
jyrkive
added a commit
to jyrkive/mongoose
that referenced
this issue
Jun 12, 2019
jyrkive
added a commit
to jyrkive/mongoose
that referenced
this issue
Jun 12, 2019
vkarpov15
added a commit
that referenced
this issue
Jun 12, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
If you push a value to an array, populate the said array, push nothing to the said array, and finally save the document, the originally pushed value is not persisted to the database.
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
The three numbers this script should print are 1, 3, 3. The actual values it prints are 1, 3, 2.
What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
The text was updated successfully, but these errors were encountered: