codeigniter-mongodb-library
codeigniter-mongodb-library copied to clipboard
CodeIgniter MongoDB library based on PHP 7.1+
I wanted to see the number of objects created before the current _id. `db.CollectionName.find({_id: {$lte: ObjectId('60d72cb1faaeb52ac010d0ed')} }).count() ` This will tell me how many records are created before this particular...
I hava a column age. i want to change it as person_age . How to acheive it. Do we use projection in this library?
I am able to connect to mongodb server using native PHP MongoDB driver and code. `require 'vendor/autoload.php'; $client = new MongoDB\Client( 'mongodb+srv://:@cluster0.tpts.mongodb.net/myFirstDatabase?retryWrites=true&w=majority'); $db = $client->test;` However connecting using the codeigniter...
Hi, I'm having this problem with my project. I've read some questions about this, but I can't solve it. **Fatal error: Class 'MongoDB\Driver\WriteConcern' not found in C:\xampp\htdocs\..... Message: Class 'MongoDB\WriteConcern'...
How to use distinct query using this library? I want to fetch distinct values of fields from collection. There is a function for distinct in library. I have used function...
How can i add multiple LIKE conditions on fields?
I'm ugrading codeigniter 2x to 3.1.1, php5.6 to 7.2, mongodb 3.4 to 3.6 im facing this issue Type: Error Message: Class 'CI_Mongo_db' not found Filename: /var/www/html/main_code/system/core/Common.php Line Number: 196 also...
i created one field of date type in database ( $this->mongo_db->date() ) so my question is that how can i get condition on this filed . for example how can...
Hi@verkhoumov , I'm using your mongodb library but I have a problem, I get this error when I query on mongoDB. I would be very happy if you help $ops...
to improve user understanding when switching databases is best to use the "config_group" to assign the new connection. Change library/Mongo_db: `return $this->reconnect(['config' => array_replace_recursive($this->config, ['connection' => ['db_name' => $database]])]);` to...