[DOCS-9701] Comment on: "primer/update.txt" Created: 27/Dec/16 Updated: 27/Oct/23 Resolved: 28/Dec/16 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Trivial - P5 |
| Reporter: | Docs Collector User (Inactive) | Assignee: | Allison Reinheimer Moore |
| Resolution: | Works as Designed | Votes: | 0 |
| Labels: | collector-298ba4e7 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Location: https://docs.mongodb.com/getting-started/node/update/ |
||
| Participants: | |
| Days since reply: | 7 years, 7 weeks ago |
| Story Points: | 0.25 |
| Description |
in this document you use { "name" : "Juni" }to update and in $set method you use { "cuisine": "American (New)" } |
| Comments |
| Comment by Allison Reinheimer Moore [ 28/Dec/16 ] |
|
The {"name": "Juni"} specifies which document to update (the one where name is "Juni", while the $set method specifies what field to update, in this case, to set cuisine to "American (New)". Here's the method reference for the updateOne syntax for the node.js driver and the MongoDB Shell. |