S
S
Snewer2014-06-03 15:20:26
PHP
Snewer, 2014-06-03 15:20:26

MongoDB, how to get inserted record ID?

Hello!
Is there a similar mysql insert_id function in mongo? That is, I need to get the id of the inserted document. Generating your id is not suitable.
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
trerums, 2014-06-03
@Snewer

stackoverflow.com/questions/4525556/mongodb-php-ge...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question