[DOCS-6821] Comment on: "manual/reference/method/db.collection.deleteOne.txt" Created: 15/Dec/15 Updated: 08/Dec/16 Resolved: 15/Dec/15 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Docs Collector User (Inactive) | Assignee: | Ravind Kumar (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | collector-298ba4e7 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
MongoDB 3.2 Location: https://docs.mongodb.org/manual/reference/method/db.collection.deleteOne/#db.collection.deleteOne |
||
| Participants: | |
| Days since reply: | 8 years, 9 weeks, 1 day ago |
| Description |
|
I believe that there is a mistake in one of the examples of the function deleteOne The following operation deletes the order with _id: ObjectId("563237a41a4d68582c2509da") : try { ); inside the try block, when the deleteOne function is called , the collection should be order. Hope that i can help. |
| Comments |
| Comment by Githook User [ 15/Dec/15 ] |
|
Author: {u'username': u'rkumar-mongo', u'name': u'ravind', u'email': u'ravind.kumar@10gen.com'}Message: Additional minor fixes to deleteOne and deleteMany examples Signed-off-by: kay <kay.kim@10gen.com> |
| Comment by Ravind Kumar (Inactive) [ 15/Dec/15 ] |
| Comment by Kay Kim (Inactive) [ 15/Dec/15 ] |
|
As the reporter stated, the collection name should be orders in the deleteOne examples. |