I\'m wondering if there is a way to insert new document and return it in one go.
This is what I\'m currently using:
db.collection(\'mycollection\').i
You could use mongojs to do this.
db.collection('mycollection').save(doc, function(error, response){ // response has _id })