'Nodejs Schema elements calculation

I want to take each data one by one from mongo db and make a calculation with each of them . "if height-weight>0 console.log('big') else console.log('little')" This line describes what I am trying to do

router.get(`/:id`,(req,res)=>{
   Kutu.instructors.find({},{height:1,weight:1}).lean().pretty().then(kutu=>{
console.log({height}-{weight})
       res.render('site/kutu',{kutu:kutu})
   })

})
if({height}-{weight}>0)
console.log('big)
else
console.log('little')


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source