skip to Main Content

MongoDB $lookup returning array with empty

Product Collection: [ { "isActive": true, "_id": "643bbdee68b521035e20c976", "name": "lu", "price": 123, "userId": "643abd0dcce4df3b1a0c8fa7" }, { "_id": "643bbdd668b521035e20c972", "name": "mu", "price": 123, "userId": "643abd0dcce4df3b1a0c8fa7", "isActive": true, "__v": 0 }, { "isActive": true, "_id": "643bbdbc68b521035e20c971", "name": "nu", "price": 123, "userId": "643abd0dcce4df3b1a0c8fa7"…

VIEW QUESTION

Unable to connect to Mongodb from Nodejs

I am trying to connect to Mongodb from my first node project.I am using Mongoose to achieve that. However, mongoose.connect() gives me MongoParseError error. Complete error: MongoParseError: options connections, models, events, __driver, options, _pluralize, schema, model, plugins, default, mongoose, cast,…

VIEW QUESTION
Back To Top
Search