How to get the object id in PyMongo after an insert?
One of the cool things about MongoDB is that the ids are generated client side. This means you don’t even have to ask the server what the id was, because you told it what to save in the first place. Using pymongo the return value of an insert will be the object id. Check it … Read more