Json 格式查询
基本查询
{
"Deleted": "1"
}
并列条件
{
"xid": 560870,
"type": "video"
}
查询带有集合的数据
{
"Parameter.centerCityId": "6666"
}
不等于
{
"Deleted": {$ne:"1"}
}
说明:
$gt >
$gte >=
$lt <
$lte <=
$ne !=
$in : in
$nin: not in
$all: all
$not: 反匹配
判断字段是否存在
{
"Deleted": {$exists: true}
}
模糊查询%哈哈%
{
"requestParam" : {
"$regex":"哈哈",
"$options":"i"
}
}