1、create
db.getCollection('auth_users').insert(
{
"userName" : "test007",
"phone" : "13800001237",
"password" : "123456"
})
db.getCollection('auth_users').insertMany([
{
"userName" : "test015",
"phone" : "13800001230",
"password" : "123456",
"age" : 20,
"isLive" : 0
},
{
"userName" : "test014",
"phone" : "13800001231",
"password" : "123456",
"age" : 28,
"isLive" : 1,
"class" : [
"语文",
"英语"
]
},
{
"userName" : "test013",
"phone" : "13800001232",
"password" : "123456",
"age" : 33,
"class" : [
"语文",
"英语",
"数学"
]
},
{
"userName" : "test012",
"phone" : "13800001233",
"password" : "123456",
"age"