-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
Doesn't work with findOneAndUpdate #11
Comments
There is an open PR (#10) on this problem. We still are not able to fix the problem mainly because of how mongoose hooks works for |
@ramiel what exactly is it that will have to be fixed before my PR can be merged? Auto incrementation works fine in findOneAndUpdate using the code in my PR. |
There is a list on the PR. By the way:
I prefer to release the functionality when is complete. |
Ok, I'll see if I can find some time to look at those points in the near future. |
Thank you. Your contribution is really appreciated! |
The same issue is still there. Any update? |
any update ? |
Due to the way mongoose hooks work,it's not.possible to cover all the cases. I'll should probably find the time to cover at least the basic use case (no multi,no bulkwrite) but I have no time now,so I don't know when I can work on this again |
I'm using findOneAndUpdate and
upsert:true
to do a findOrCreate buy my auto increment field is not being populated. It works when using create.The text was updated successfully, but these errors were encountered: