filter: { "name": "case", "field":{ "$gt": 0 } } And Document d={} 首先使用文档operator处理 documentOp(d, filter,nil,nil) 然后是值operator处理,匹配name valueOp(d, nil, key,value) 字段op处理(d, {$gt:0}, key="field",nil)