TIMEX
TIMEX

Reputation: 271624

After inserting an item into MongoDb, how do you get its ObjectID?

last inserted objectid, just like the one MYSQL has.

Upvotes: 0

Views: 836

Answers (1)

Nick Bastin
Nick Bastin

Reputation: 31299

If you're using the standard Python API, it returns the ObjectID when you call insert. Are you expecting/trying to get the ObjectID in some other manner?

Upvotes: 6

Related Questions