
// Gets the collection
var myColl = db.getCollection('my_collection');

// Insert a document
var res = myColl.add({name: 'Jack', age: 15, height: 1.76 }).execute();

// Print the documentId that was assigned to the document
print('Document Id:', res.getGeneratedIds()[0]);
