Inserting document with _id, which function to use?


#1

I’d like to insert a mongo document with an id created before the insert happens, versus insert a document and get back the auto-generated id.

Does it matter which id generation method I use?
new Mongo.ObjectID()
Random.id()
Collection._makeNewID();