I'm using NodeJS wih MongoDB using mongodb package. When I run mongod command it works fine and gives "waiting for connection on port 27017". So, mongod seems t
I have a database with a lot of collections that have '/' in their names. The problem is mongodump will fail in this circumstance. Failed: "CollectionNameWith/
I am trying to distribute a set of connected applications running in several linked containers that includes a mongo database that is required to: be distribut
I run following query in mongo shell: db.Profiles.find ( { $or : [ { "name" : "gary" }, {"name":"rob} ] } ) It just returns nothing as expected(JSON)?
Im working on a project that displays a list of .xml and .txt files on a web browser. Using a MERN Graphql stack, is it possible to have two different endpoints
I have been trying to setup password to mongodb My docker-compose file is version: "3" services: mongo: image: mongo ports: -
I am an absolute beginner when it comes to MongoDb. Just joined a new project where it is used, so I tried to do few experiments to get myself familiar. I got t
Is there a way to delete all children of an parent in Mongoose, similar to using MySQLs foreign keys? For example, in MySQL I'd assign a foreign key and set it
I am constructing MongoClient Connection in the below manner : public static synchronized MongoClient getInstance(String mongoDbUri) { try {
I tried to import a simple json file using mongoimport and i get the following error PER-MacBook-Pro:/AJ$ mongoimport --db test --collection samplePM --file /
I've been struggling so much with this project. I am following a tutorial that is out of date in some areas, for instance their version of Jquery used a totally
I have tried to use Mongoose to send the list of all users as follows: server.get('/usersList', function(req, res) { var users = {}; User.find({}, fun
I am getting the following error while joining two collection and project the fields using MognoDB. Error:: Error: command failed: { "ok" : 0, "er
If I have a mongodb collection users like this: { "_id": 1, "name": { "first" : "John", "last" :"Backus" }, } How do I retrieve name.first from
Is there a way in mongodb to use if/else to set a field value during an update. i know that i can use find, to return documents, loop over them, and do if/else
I am using an upsert using mongodb's Jensseger PHP library. Every time I add new data to the document it updates the value of the field if the field names are
This is my first time trying anything with MongoDB, so I would love any tips if you guys have any, but in particular, Im having trouble establishing a connectio
I have defined my schema, I just need to know the syntax to do the actual HTTP POST request. I am using MongoDB with Mongoose framework. This way when I go to m
I have a documents in MongoDB, one of them looks like this: { "_id" : 100, "name" : "Something", "items" : [ { "item" : 47, "color" : "red"
I write a big aggregate query for mongodb, now I try to translate it in Spring Data Mongodb API, and it's very complicated, and spring data api did not help me