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
Add more info to docs for update() function #571
Comments
+1 |
+1 |
+1 - Especially mentioning 'upsert' in the actual documentation would be great! |
+1 Same problem here. Removing _id from the object did the trick for me. This should be added to the docs. |
we'll be rewritting the docs soon. |
+1 - has this been updated? |
not yet. v3 alpha is almost out. will start docs afterward |
+1 |
V3 is out and I saw that this issue is still open. I'm having issues with update and upsert not using the default values when creating a document when one isn't found. Docs would really help. |
The docs were updated in v3. Anyone want to submit a pull request for this? Should be pretty easy. |
Can we do this in .save if there is an option like update:true. |
+1 |
4 similar comments
+1 |
+1 |
+1 |
+1 |
This is great, except that when I try to implement it I am getting an element with |
I'm having the same issue as simonh1000. The _id value is set to null on update. |
I now use this coffeescript |
Alright! Thanks! I got mine working now. |
+1 |
Man you're a hero thank you ! +1 |
Please add something like the following to the documentation (here and here) for the update() function:
The documentation currently only shows update() being used with a modifier like $inc, but it's not immediately clear to newbies (like myself) that you can use it to insert/replace entire documents. Example:
The text was updated successfully, but these errors were encountered: