Which shell query displays all citizens with an age greater than or equal to 21?

  •  db.citizens.select(‘WHERE age >= 21’)
  •  db.citizens.where(‘age >= 21’)
  •  db.citizens.find(‘WHERE age >= 21’)
  •  db.citizens.find({age: {$gte: 21}})

Leave a Reply

Your email address will not be published. Required fields are marked *