python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Node, Mongoose search inside nested object
I have the following Schema:
@Schema()
export class Category extends Document {
@Prop({ required: 'Category name is required' })
name: string;
@Prop({ default: true })
active: boolean;
}
exp...
Arleen Silva
Votes: 0
Answers: 0
Beginner in Mongoose: How to find if an array contains a value if I already have the document
I am trying to develop a banking website where users can apply for a loan. A single user can apply for multiple types of loans. Before a user successfully applies for a loan , I check if the user exis...
anurag1905
Votes: 0
Answers: 0
Mongodb connected on nodejs and localhost keeps on reloading
I am trying to connect to my backend mongodb 5.0.5 with nodejs express script.
when running the app.js using nodemon it shows your mongodb is connected but on the localhost it keeps on reloading witho...

Vishal Torne
Votes: 0
Answers: 2
post author Id turn into author username in node js for mongodb
i am trying to have my post's author's name in frontend. so i want to find the post according to it's user Id. but in model schema i used obejct Id of user in post Schema.
Here is my userSchema:
const...
rony01
Votes: 0
Answers: 1