coperator/case.md

22 lines
269 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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)