According to Meteor docs about the Mongo.Collection.insert()
function,
insert will generate a unique ID for the object you pass, insert it in the database, and return the ID.
It also works asynchronously:
If you do provide a callback, insert still returns the ID immediately.
Is there any guarantee that the generated _id is globally unique? How does Meteor's Minimongo generate such an _id on the client side?