Top "Mongodb-php" questions

MongoDB is a document oriented NoSQL database.

mongodb php - how to do "INNER JOIN"-like query

I'm using the Mongo PHP extension. My data looks like: users { "_id": "4ca30369fd0e910ecc000006", "login": "user11", "pass": "example_…

mongodb mongodb-php
How do you get the string value of a MongoID using PHP?

After doing an insert I want to pass the object to the client using json_encode(). The problem is, the _…

mongodb mongodb-php
MongoConnectionException - Failed to connect to: localhost:27017

I used the following PHP code to connect to MongoDB: $m = new MongoClient("mongodb://localhost:27017"); However, I am getting the …

php mongodb mongodb-php
how to ignore duplicate documents when using insertMany in mongodb php library?

I am using mongo php library, and trying to insert some old data into mongodb. I used insertMany() method and …

php mongodb mongodb-php
MongoDB, MapReduce and sorting

I might be a bit in over my head on this as I'm still learning the ins and outs of …

mongodb mongodb-php mongodb-query
MongoDB multiple $and operators query in PHP

I’m having trouble with this MongoDB query using PHP array syntax. This is a direct version of the query …

php mongodb mongodb-php
MongoConnectionException - No candidate servers found

I am developing a PHP web application using a MongoDB replicaset to store my data. I occasionally receive the following …

php mongodb mongodb-php
MongoDB - Aggregation - To get unique items in array

Here's my MongoDB collection: { "_id" : ObjectId("515d8f53175b8ecb053425c2"), "category" : "Batteries", "products" : [ { "brand" : "Duracell", "item" : [ "AA", "AAA" ] }, { "brand" : "…

mongodb mongodb-php mongodb-query
Mongodb nested array search

document structure example is: { "dob": "12-13-2001", "name": "Kam", "visits": { "0": { "service_date": "12-5-2011", "payment": "40", "chk_number": "1234455", }, "1": { "service_date": "12-15…

php search mongodb mongodb-php
MongoDB PHP using $in with array

I'm using MongoDB and PHP and trying to do a $in based on a generated array. When I specify the …

php mongodb mongodb-php