Thinkphp 5.1:MongoDb出现的BSON field 'count.query' is the wrong type 'array', expected type 'object

1、and/$nor entries need to be full objects
在Mongo扩展 Buider.php parseWhere方法

logic][] = query->getOptions('where'), query->getOptions('where')){
logic][] = query->getOptions('where'), $options);
}
2、BSON field 'count.query' is the wrong type 'array', expected type 'object'
在Mongo扩展 Buider.php parseWhere方法

最后的输出前判断 给一个空对象
if (empty($filter)){ // 返回空对象
return (object)[];
}

你可能感兴趣的:(Thinkphp 5.1:MongoDb出现的BSON field 'count.query' is the wrong type 'array', expected type 'object)