[DOCS-8337] Comment on: "manual/reference/method/db.collection.findOneAndUpdate.txt" Created: 13/Jul/16 Updated: 26/Jul/16 Resolved: 22/Jul/16 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Docs Collector User (Inactive) | Assignee: | Jonathan DeStefano |
| Resolution: | Done | Votes: | 0 |
| Labels: | collector-298ba4e7 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Location: https://docs.mongodb.com/manual/reference/method/db.collection.findOneAndUpdate/ |
||
| Participants: | |
| Days since reply: | 7 years, 30 weeks, 2 days ago |
| Description |
|
In the example provided for 'Update document with Upsert', return document seems to be wrong - Returned new document contains "_id" : 5239 whereas the _id field is not present either in query document or in update document. In this case it should contain an objectId assigned by mongod or the driver. |
| Comments |
| Comment by Githook User [ 18/Jul/16 ] |
|
Author: {u'username': u'jdestefano-mongo', u'name': u'jonathan', u'email': u'jonathan.destefano@10gen.com'}Message: Signed-off-by: kay <kay.kim@10gen.com> |