last insert id? #26

catindev opened this Issue Oct 13, 2012 · 1 comment

2 participants


how can I get it?


@baddcat, sorry for a late reply. Apparently GitHub stopped sending me emails about issues!

You can do a find() query on the object you just saved/updated and retrieve it there.

If you do not have that object to query against?
I'm currently not sure how to do this in the Mongo shell itself.
If you could tell me how (if it is possible) to do it there, I can probably provide a better answer.

I'm gonna leave this open, but if I don't hear back from you in a while, I'm gonna close it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment