MongoDB&;CodeIgniter:选择字段存在的位置
我正在与Codeigniter和 我想在存在字段的位置执行选择MongoDB&;CodeIgniter:选择字段存在的位置,codeigniter,mongodb,field,Codeigniter,Mongodb,Field,我正在与Codeigniter和 我想在存在字段的位置执行选择 db.yourcollection.find({ 'otherInfo.text' : { '$exists' : true }}) 但是我找不到如何使用这个库 有什么解决方案吗?这里不是CI程序员,但我认为: $this->mongo_db->where(array('otherInfo.text'=>array('$exists'=>true))) 可以。这里不是CI程序员,但我认为: $this-&
db.yourcollection.find({ 'otherInfo.text' : { '$exists' : true }})
但是我找不到如何使用这个库
有什么解决方案吗?这里不是CI程序员,但我认为:
$this->mongo_db->where(array('otherInfo.text'=>array('$exists'=>true)))
可以。这里不是CI程序员,但我认为:
$this->mongo_db->where(array('otherInfo.text'=>array('$exists'=>true)))
会有用的。嫁给我吧!非常感谢!嫁给我!非常感谢!