I have document containing lists. Lets say they are: [ { _id: 52b37432b2395e1807000008, name: ListA, order: 1, desc: 'More about List A' }, { _id:
I know I'm doing some very stupid and noobish, but I'm hoping someone can help me set up a basic database connection to mongodb from node.js on a mac. I've ins
Is there a way to calculate the median using the MongoDB aggregation framework?
I'm trying to install mongo db, but when installing compass it's not working properly. I tried to uninstall and reinstall, but when uninstalling it give two err
I have a MongoDB collection called properties and another collection of new data in a collection called newProperties. I want to update a single field (amoun
I have already researched a lot but could not find a solution. Closest question I could find here is Why my SPARK works very slowly with mongoDB. I am trying t
Using: ts-node: 10.7.0 MongoDB: 4.4.1 GraphQL: 16.3 I am trying to get a response back from a mongo db request. The request is successfully coming back, but typ
I am new to MongoDB. After installing MongoDB in Windows I am trying to insert a simple json file using the following command: C:\>mongodb\bin\mongoimport -
I'm trying to switch to mongoose from using just the native mongodb and having some trouble. Connecting to the db as I did previously works fine: var db; var
I have a large collection (~20M records) with some moderate documents with ~20 indexed fields. All of those indexes are single field. This collection also has q
I need to filter array of embedded documents inside a projection of an aggregation operation. I know there is this new $filter operator, but I do not know how t
Can you populate an array in a mongoose schema with references to a few different schema options? To clarify the question a bit, say I have the following schem
I'm trying to find tours within a specific distance.here is my code exports.getTourWithin = catchAsync(async (req, res, next) => { const { distance, latlng
I need to query the data between two dates. I was pushing data into mongo where dates are in the format : 13-10-2015 15:08:22 Is there a way to do it? Can't i
so I am trying to search through the search results and see who already exists in the friendRequest array of the user searching. If they exist then I want to ch
I was experimenting with mongo sharding. The collection has shard key as {policyId,startTime}. policyId - java UUID (limited values,lets say 50) startTime
I'm getting an error while trying to use the mongodb for bi connector. I am in the generation stage of the schema of difinição of the file utlizna
I am trying to connect to a Mongo app from my Node application using Mongoose. I have done this before on the same machine, but this time I am having a connecti
Have recently built a MERN stack application. For whatever reason I can't figure out, I'm getting a 5000ms response time and can't for the life of me figure out
I have mongo query which does the group operation on the documents. I have almost got the expected results except that I want to refine the results without emp