/*
1.$push数组更新操作符
KaTeX parse error: Expected '}', got 'EOF' at end of input: …不去重) 格式 : {
push: {:, …}}
*/
show databases;
db.person.find()
db.person.updateOne({
name:'zs'},{
$push:{
tags:'react'}})
再次执行:
db.person.updateOne({
name:'zs'},{
$push:{
tags:'react'}})