Really just to clarify my understanding
(collection/insert col doc) returns a WriteResult.
From my reading of the Java Driver API, the driver updates the doc parameter with the _id if one is generated as part of the insert. This doesn't happen in monger for obvious reasons.
The conclusion seems to be that to insert a document and have access to the _id value, we should be creating the ObjectId explicitly and passing it in with the document.
Is this actually, you know, like, correct?
Thanks,
Toby