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)
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
CastError: Cast to [undefined] failed for value "[]" (type string) at path "comments.undefined"
I'm quite new to node and mongoose. I'm trying to do a project using them, but i'm running into an error while trying to populate. The comment is saved to the Comment schema perfectly, but throws an e...
Fred Kimani
Votes: 0
Answers: 2
Mongoose 3 to 6 and modelSchemas
I'm working on migrating an old project from mongoose 3 to 6 and can't seem to find anything in the change docs about modelSchemas and how they've been superseded.. In some unit tests, I have this v3...
XeroxDucati
Votes: 0
Answers: 0
express handlebars | how I get the map value
controller.js
Settings.find()
.then((result) => {
for(const key in result){
const map = new Map();
map.set(result[key].key,result[key].value);
}
}).catch((err) => {
conso...
Erol
Votes: 0
Answers: 1