Answers for "Mongo-queries"

0

Mongo-queries

db.course
.find({price: {$set: {$gte: 8, $lte: 28} }})
.limit(8)
.sort({name: 1})
.select({name: 1, tags: 1})

// operators: 
// Comparison: 
//      $eq, $gt, $gte, $lt, $lte, $ne: a specified value
//      $in, $nin                 : the values specified in an array


// Logical: $and, $not, $nor, $or
// Element: $exists, $type
.......
Posted by: Guest on August-09-2021

Browse Popular Code Answers by Language