home
I have a mongodb collection as follow : [ { "_id" :...
This question already has an answer here: Using async/await with a...
I'm trying to write timestamp with strfmt.DateTime type...
I'm in front of a huge problem that I cannot solve. I want to get the result of the function...
Let's say I have the below command. STATE_NOT_C_COUNT=`mongo --host "${DB_HOST}" --port 27017...
How do I enable access control for my MongoDB server? This line shows up in the log: CONTROL...
I am able to access the mongo shell and create a user under the root user under the admin db. But...
I want to insert an ArrayList of custom objects to a MongoDB database. I've tried the following...
Is there a way to replace a document by ID? Instead of finding the document by some property, I'd...
I have a mongo db cluster, with one primary and two secondary. I have the following document { ...
I am writing a small aggregation in mongoose to filter values from db and return them in order of...
I have collection PurchaseOrder and nested array PurchaseOrderLines, in the PurchaseOrderLines I...
This question already has an answer here: Using .sort with PyMongo ...
Can anyone explain why is it trowing error? I'm trying to fetch data from database with Credentials...
I have two table VehicleTbl { "_id": ObjectId("5b976220d2ccda12fc0050fb"), "Number": "123", ...
I am student trying to build a restful API for a project. I am very new to this so please excuse me...
I use the mongolite package to interact with mongoDB. Currently I have a headache with upserting...
I'm starting on heroku and I don't understand why my app don't run :( I use nodejs, webpack, react...
I have a web-application that use MongoDB and MySQL as their database engines. This app is written...
Trying to use the mgo.v2 package to connect to the mongodb server. I have started the server...
I have an array Array ( [fullname] => Rahul [username] => rony [password] => 12345 [repassword] =>...
Please help me find error in my code const MongoClient = require('mongodb').MongoClient; const url...
Please help me fix my code. const MongoClient = require('mongodb').MongoClient; const url =...
I have the following document... { "_id": { "$oid": "5bca528b49079d64dd4cea5d" }, "song_queue":...
I have a Shipment object with a nested list of materials objects (note : _id refers to the...
This question already has an answer here: How can I create an index...
I am calling the .save() method on a Mongo document. The success callback is triggered and I am...
I'm using Node.js MongoDB native driver for this. When I use condition directly in the find() it...
I had previously deployed to Heroku with collection A in my dbMain. This worked great and I was...
I try to query my MongoDB by finding particular "_id" but new ObjectID does not do the trick. And I...