I have a local database/collection that I created from an external .bson file using mongorestore. I'm able to access the collection from my local machine, howev
Recently I have migrated one of my projects (PHP 7.4/Lumen/Ubuntu 20.04) from MongoDB to MongoDB compatible AWS DocumentDB. Since the migration all the CLI Scri
I'm trying to migrate my local MongoDB over to Atlas. I managed to run the mongodump command with localhost and can see the files in ./dump/data.bson However,
So I want to upload large CSV files to a mongoDB cloud database using a Node.js server using Express, Mongoose and Multer's GridFS storage engine, but when the
I'm working on a Node.js/MongoDB based website and i'm trying to upload images directly on server using Express, Jade, and Multer, but no matter what i do, i ca
My local time is 'Asia/Kolkata.' And I have to convert the current DateTime into 'Pacific/Auckland' and store it into MongoDB And on fetch I have to format this
I was looking around in Discord.JS and creating a bot, but every time I want to turn on the bot, ( using node index.js) this error happens: throw new Error("Th
Following on from "How to update collection and increment hours for ISO date". It seem that RoboMongo can't execute a query with an array filter: This same
I have upgraded MongoDB replica set to 3.6 following this instruction https://docs.mongodb.com/manual/release-notes/3.6-upgrade-replica-set/. When I executed co
Is it possible in MongoDB to somehow subtract only months from a date, with a value from the same document. So for example i have to subtract date from field "v
I'm trying to find the id of an object inside an array of objects. That _id has the same field name _id as others in the document. This is my model (brief) var
I follow all the steps mention in MongoDB installation documents for Ubuntu 16.04. Steps 1: sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv
Posted below is my bash command line execution of mongod. I am not sure why it is not working properly and is resulting in the series of key:value pairs, follow
I was using mongo driver for java 2.x and passed to 3.1. DBCursor is deprecated and I had to use the FindIterable<Document> structure. When I perform a q
I was using mongo driver for java 2.x and passed to 3.1. DBCursor is deprecated and I had to use the FindIterable<Document> structure. When I perform a q
I have a records collection with the following indexes: {"_id":1} {"car.make":1,"city":1,"car.mileage":1} And performing the following query: db.records.agg
I use Node with Monk, a simple library for MongoDB. It doesn't have insertOne and so on. And it's totally annoying to get a deprecation warning on each insert.
I have a Mongo collection like this: { "user_id" : "1", "branch_id" : "1", "trans_type":"DEBIT", "total" : 500 }, { "user_id" : "1", "b
Basically I have a mongodb collection called 'people' whose schema is as follows: people: { name: String, friends: [{firstName: String, lastN
I am using Django + mongoengine I want to update the books (embedded document) count in my Bookscollection document. I want the update query to return the full