📅  最后修改于: 2022-03-11 15:04:41.758000             🧑  作者: Mango
1 db.coll.insertOne({name: "Max"})
2 db.coll.insert([{name: "Max"}, {name:"Alex"}]) // ordered bulk insert
3 db.coll.insert([{name: "Max"}, {name:"Alex"}], {ordered: false}) // unordered bulk insert
4 db.coll.insert({date: ISODate()})
5 db.coll.insert({name: "Max"}, {"writeConcern": {"w": "majority", "wtimeout": 5000}})