CRUD and Interfaces Documentation Chapter
(DOCS-233)
|
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | manual |
| Affects Version/s: | mongodb-2.2 |
| Fix Version/s: | Server_Docs_20231030 |
| Type: | Sub-task | Priority: | Minor - P4 |
| Reporter: | Gui Forget | Assignee: | Kay Kim (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | newwriter | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: | |
| Days since reply: | 11 years, 18 weeks, 5 days ago |
| Description |
|
I was looking for a way to retrieve the ObjectID of the objects being inserted until I found out that it is added automatically to the object I passed to the insert method. This totally makes sense now that I think about it given that the ObjectId is calculated on the client side.I didn't find this mentioned anywhere so I think it should be added to the documentation. I'm not sure this is working with all the drivers but it does at least for the Java one as this little program shows: { "name" : "joe" , "_id" : { "$oid" : "50402b3a744e0a126a98fe0e"}} |
| Comments |
| Comment by auto [ 12/Oct/12 ] |
|
Author: {u'date': u'2012-10-12T13:48:43-07:00', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}Message: |
| Comment by auto [ 12/Oct/12 ] |
|
Author: {u'date': u'2012-10-12T12:16:05-07:00', u'email': u'samk@10gen.com', u'name': u'Sam Kleinman'}Message: merge: |
| Comment by auto [ 12/Oct/12 ] |
|
Author: {u'date': u'2012-10-12T10:54:52-07:00', u'email': u'kay.kim@10gen.com', u'name': u'kay'}Message: |
| Comment by Sam Kleinman (Inactive) [ 28/Sep/12 ] |
|
for the insert section of the crud chapter |