Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

last insert id? #26

Open
catindev opened this issue Oct 13, 2012 · 1 comment
Open

last insert id? #26

catindev opened this issue Oct 13, 2012 · 1 comment

Comments

@catindev
Copy link

how can I get it?

@amark
Copy link
Owner

amark commented Apr 12, 2013

@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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants