how to find the data by its id in the mongodb in express.js // findById() query

 Userimages.findById({_id:newid,},function(err,gall){

      if(err){
         console.log(err)
      }
       else{
             // do this              
       }
})

Comments

Popular posts from this blog

How to run C language into visual studio code