"parents":"$eleMatch":{"age":55}
字段查询
"math":{"$exists":true}
$where
{"$where":this.value>30"}
正则运算--模糊查询
$i,忽略大小写
"name",/a/i
"name":"/谷/" 能查出name=“山谷”
s数据排序
sort()函数
sort({"score“:-1})
1升序列-1降序
$nature自然排序
"parents":"$eleMatch":{"age":55}
字段查询
"math":{"$exists":true}
$where
{"$where":this.value>30"}
正则运算--模糊查询
$i,忽略大小写
"name",/a/i
"name":"/谷/" 能查出name=“山谷”
s数据排序
sort()函数
sort({"score“:-1})
1升序列-1降序
$nature自然排序