Skip to main content
1 vote
1 answer
153 views

MongoDb Connection failed : Error: querySrv ECONNREFUSED How can I solve this error? My node v24.13.0 and mongoose 9.1.5 are the latest versions. Also I changed my network dns to Google's dns number ...
Sudarsan Sarkar's user avatar
-1 votes
0 answers
45 views

I am working on one of my personal project and using Mongoose with TypeScript. I'm trying to add a pre("save") middleware to hash a password. But I am getting an error. I am using Node.js ...
Manu H N's user avatar
5 votes
1 answer
195 views

I’m running into a MongoDB connection issue that only appeared after switching Node.js versions, and I haven’t been able to resolve it despite extensive troubleshooting. Environment OS: Windows 10 ...
Vin's user avatar
  • 81
0 votes
0 answers
47 views

the code is working properly when i fetch normal data or try to fetch data based on condtions like less then or greater then all these are working properly but when i try to sort the data that is not ...
Prince SaiNi's user avatar
0 votes
0 answers
39 views

I'm trying to generate a compatible type for Mongoose/bson ObjectId for a part of my repo which holds types which is shared between my Frontend and my Backend. I don't want to install/load mongoose or ...
frederik-b's user avatar
3 votes
0 answers
70 views

I am building a multi-tenant application, and I am using a global plugin instead of adding a plugin to each model one by one. This plugin will handle adding organizationId during filters, saving, and ...
sahilatahar's user avatar
3 votes
1 answer
45 views

I’m using MongoDB transactions with Mongoose, and I noticed a warning in the official docs that confused me regarding concurrency. According to docs for ClientSession.startTransaction(): IMPORTANT: ...
Abdullah Moudood's user avatar
1 vote
1 answer
103 views

I am having trouble with the implementation of the mongoose-sequence library in my MongoDB, Express, Node.js API. This project is one for adding people to a database. Each person has a firstName, ...
JuicyGronky's user avatar
0 votes
0 answers
62 views

I have a branch management system in my application where some approved requests show the processor's name (like "usernme") while others show "Legacy". The issue Logs always show ...
Dipanshu Rawat's user avatar
2 votes
1 answer
117 views

I am working on an authentication project using Typescript and mongoose as my database. Whilst writing my middleware code that should hash the password before it gets inserted into the mongoose ...
Mezzo's user avatar
  • 49
2 votes
1 answer
57 views

I'm working on an Express controller to update product's inventories when saving an order. Below is the code to recalculate sold & sellable amount of a product. for (const lineItem of order....
James Vu's user avatar
  • 2,493
2 votes
1 answer
90 views

I'm losing my mind a bit here. I'm completing an old project of mine with Express and Mongoose with Google firebase login. Everything was working fine with my first test user, but as soon as I tried ...
Sami3160's user avatar
-1 votes
1 answer
63 views

const mongoose = require("mongoose"); const passportLocalMongoose = require("passport-local-mongoose"); const userSchema = new mongoose.Schema({ Fullname: { type: ...
Annu Roy's user avatar
2 votes
1 answer
97 views

I'm trying to implement a robust search function in my NestJS/Mongoose application that can handle partial matches while being case-insensitive and diacritics-insensitive (ignoring accents). My ...
Steeven Delucis's user avatar
3 votes
1 answer
66 views

exports.getAllProducts = async (req, res) => { try { console.log(req.query); const queryObj = { ...req.query }; const excludedFilters = ["page", "limit", "...
ahmad fakher's user avatar

15 30 50 per page
1
2 3 4 5
3109