-
model.FindById using MVC express js MongoDB pug is not working
over 4 years ago
-
about 4 years ago
Please add these lines to verify the response from the MongoDb query, as i can't see proper error handling @jaganrout
OwnerModel.findById(OwnerId)
.catch(error => console.log(error))
.then(owner=>{console.log(owner)})
-
1 Answer(s)