model.find({}) instanceof mongoose.Query //true
model.find({}).lean() instanceof mongoose.Query //true
Person.
find({
occupation: /host/,
'name.last': 'Ghost',
age: { $gt: 17, $lt: 66 },
likes: { $in: ['vaporizing', 'talking'] }
}).
limit(10).
sort({ occupation: -1 }).
select({ name: 1, occupation: 1 }).
exec(callback);
1.
model.updateOne(
{ <array>: value ... },
{ <update operator>: { "<array>.$" : value } }
)
db.students.updateOne(
{ _id: 4, "grades.grade": 85 },
{ $set: { "grades.$.std" : 6 } }
)