Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongoose find

model_Name.find({query},function(err,rs){
if(err){
console.log(err);
}
else{
console.log(rs)
}
}


//EXAMPLE
Fruit.find({name:"apple"},function(err,rs){
if(err){
console.log(err);
}
else{
console.log(rs)
}
}

Source by mongoosejs.com #
 
PREVIOUS NEXT
Tagged: #mongoose #find
ADD COMMENT
Topic
Name
6+2 =