afigueredo
3/18/2019 - 5:04 PM

Find Greater Than, Find One

db.alura.find({
    "notas": {
        $gt:4 //Greater than
      }
})

db.alura.findOne({ // Return only one element
    "notas": {
        $gt:5 //Greater than
      }
})

db.alura.findOne({ // Return only one element
    "notas": {
        $gt:5 //Greater than
      }
})