Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
MongoDB&;CodeIgniter:选择字段存在的位置_Codeigniter_Mongodb_Field - Fatal编程技术网

MongoDB&;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-&

我正在与Codeigniter和

我想在存在字段的位置执行选择

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)))

会有用的。

嫁给我吧!非常感谢!嫁给我!非常感谢!