var documents = [
{ name: "Alice", age: 28, occupation: "Engineer" },
{ name: "Alice", age: 20, occupation: "Engineer" },
{ name: "Bob", age: 32, occupation: "Designer" },
{ name: "Charlie", age: 36, occupation: "Developer" }
];
db.collection_name.insertMany( )
collection_name代表集合名 insertMany 代表批量插入的方法名
查看集合中的 所有文档