php-mongodb Questions
3
Solved
I need to create a message system, where a person can have a conversation with many users.
For example I start to speak with user2, user3 and user4, so anyone of them can see the whole conversation...
Interject asked 9/12, 2011 at 22:14
5
Solved
I'm having trouble connecting to a replica set.
[MongoDB\Driver\Exception\ConnectionTimeoutException]
No suitable servers found (`serverSelectionTryOnce` set):
[Server closed connection. calling...
Erikaerikson asked 13/1, 2017 at 22:23
2
Solved
I am using mongo php library, and trying to insert some old data into mongodb. I used insertMany() method and pass a huge array of document, that may have duplicate documents on unique indexes.
Le...
Dogfight asked 25/11, 2016 at 19:23
5
Solved
Here's my MongoDB collection:
{
"_id" : ObjectId("515d8f53175b8ecb053425c2"),
"category" : "Batteries",
"products" : [
{
"brand" : "Duracell",
"item" : [
"AA",
"AAA"
]
},
{
"brand" : "...
Debor asked 4/4, 2013 at 14:46
7
Solved
I have updated mongo and now in the log the following error appears:
Use of the aggregate command without the cursor option is deprecated
Mongo says that I should put a second REQUIRED parameter t...
Dominik asked 6/5, 2017 at 10:27
4
Solved
I want add new data my nested array
My document is:
{
"username": "erkin",
"email": "[email protected]",
"password": "b",
"playlists": [
{
"_id": 58,
"name": "asdsa",
"date": "09-01-...
Comus asked 10/1, 2015 at 8:55
8
Solved
Is there an ETL for MongoDB ?...
Merta asked 26/3, 2011 at 19:38
1
Solved
I'm working on Laravel (v5.7) app that converts uploaded CSV (with contacts) into array that is then passed as argument when job class is being dispatched.
Here is the example of CSV file (format t...
Strath asked 11/11, 2019 at 17:53
5
Solved
After doing an insert I want to pass the object to the client using json_encode(). The problem is, the _id value is not included.
$widget = array('text' => 'Some text');
$this->mongo->db...
Churchless asked 22/10, 2011 at 17:27
1
Solved
I use MongoDB PHP v1.3 and in my MongoDB I have multiple collections:
// COLLECTION NAMES:
- user_1_list_1
- user_1_list_2
- user_1_list_3
...
- user_1_list_55
All these collections have the sam...
Chloramphenicol asked 27/5, 2019 at 17:34
1
I have a question that might point to a misunderstanding I have with Homebrew in relation to MongoDB:
I am running XAMPP (version) with PHP 7.2.1 (which I want to use) on Mac OSX 10.12.6 (Sierra)....
Rights asked 27/2, 2018 at 12:59
12
I am very eager to start working with PHP 7 however one issue is getting in the way... I primarily use MongoDB for the database, and the problem is that I don't know how to install the MongoDB driv...
Sublingual asked 28/12, 2015 at 1:51
4
Solved
When I inserted some documents into a collection (without an ObjectID) mongoDB adds its own ObjectIDs.
I want to query a document by its unique ObjectID.
$db->collection_name->find(array('_...
Ladyinwaiting asked 16/8, 2011 at 6:20
1
Solved
I have a collection TblStudent in mongodb like
{
"_id": ObjectId("5baa85041d7859f40d000029"),
"Name": "John Doe",
"RollNo": 12,
"Class": "Ist"
....
}
I have another collection TblRoute l...
Menton asked 8/10, 2018 at 19:31
2
Solved
What is the php syntax which will do the work which the following mongodb Shell does?
> db.SoManySins.find({},{"_id":0,"FactoryCapacity":1})
Markmarkdown asked 14/4, 2013 at 6:27
4
Solved
I can see the statistics from Mongo shell as
db.stats()
or
db.collection_name.stats()
How do I view statistics of a database, or of a collection, from PHP and Python.
EDIT:
I have done it in...
Growl asked 25/7, 2012 at 11:25
3
I am creating application with codeigniter and mongodb database. As codeigniter doesn't contain mongodbs driver, I have used built in library to connect with mongodb. I have used this link to creat...
Sheriesherif asked 19/8, 2014 at 12:10
4
I am using MongoDB with the PHP Library. I inserted a valid JSON document inside MongoDB using PHP. I am now retrieving the document using findOne and am getting a MongoDB\Model\BSONDocument object...
Epi asked 18/2, 2016 at 4:25
6
I have used PHP Version 5.3, So i need to Download MongoDB 3.0 and PHP Driver version 1.6 how to download older version (3.0) of MongoDB and PHP Driver.. And also i want use PHP composer and ...
Apparel asked 16/12, 2016 at 5:38
0
I am trying to understand more advanced functions of mongodb and laravel but having trouble with this. Currently I have my schema setup with a users, posts, and posts_votes collections. The posts_v...
Pyrethrin asked 13/8, 2016 at 20:26
1
Im' currently trying to integrate MongoDB with Doctrine in ZendFramework. I did a lot of tutorial (on StackOverflow or anywhere else) but nothing is really working.
I followed step by step a tutor...
Naive asked 22/2, 2014 at 11:1
2
I've read through all the similar Stack Overflow questions - nothing addresses my specific issue. I'm running OS X 10.11 (El Capitan).
I've cloned the mongo-php-drive repo and these commands succe...
Paralyze asked 7/8, 2015 at 13:33
4
Solved
Creating a document:
$db->collection->insert($content);
// $newDocID = ???
How to get the new document's id?
Braunstein asked 24/12, 2010 at 9:57
2
Solved
I'm having a problem using the MongoDB with Laravel framework. I used this Laravel-MongoDB
Here's the error I got
/app/model/User.php
<?php
use Jenssegers\Mongodb\Model as Eloquent;
clas...
Zelma asked 11/12, 2014 at 10:3
5
I'm using the Mongo PHP extension.
My data looks like:
users
{
"_id": "4ca30369fd0e910ecc000006",
"login": "user11",
"pass": "example_pass",
"date": "2010-09-29"
},
{
"_id": "4ca30373fd0e910...
Claque asked 30/9, 2010 at 10:18
1 Next >
© 2022 - 2024 — McMap. All rights reserved.