List.findOne({name:tagname},function(err,fidlist){
if(!err){
if(!fidlist){
console.log("doesnt exist");
}
else {
console.log("exist");
}
}
});
How to fix the code showing Model.findOne() no longer accepts a callback can some one help me out.