#simple cli: (u can enhance by error control via inner lambda) var data = [{"uid":1},{"uid":2}] db.getCollection("collectionName").insertMany(data)