{
"limit": 30, // 限制返回条目数
"skip": 20, //跳过条目数
"sort": { "age" : -1, "time": 1 }, // 条目排序
"filter": {
"name": "Tom", // 条件过滤
"function": { "$regex": "device" }, //模糊搜索, function中包含device的
"$or": [ { "score": { "$gt": 70, "$lt": 90 } }, { "views": { "$gte": 1000 } }] // 逻辑查询,$gt,$lt,$gte分别为大于,小于,大于等于
},
"project": {
"name": 1,
"function": 1
}, // 返回字段
"withCount": true // 是否返回总条目数,为true时,会在响应头加上count字段,对应值为条数
}