我尝试为find()
构建选择器:
$selector = array("type" => array('$not' => array("2", "3")));
获取“type”不是 2 和 3 的所有行。
但它不起作用......
文档示例是:
{
"_id" : ObjectId("59218620470e6cb90e3c9878"),
"name" : "Acceleration",
"default" : "2",
"visibility" : "1",
"type" : NumberLong(1),
"only_numbers" : null,
"value" : "2",
"available" : "1"
}