查询,更新,投影以及聚合操作符
查询、更新以及投影操作符快速入门
查询和更新操作符:
$addToSet- $all
- $and
- $bit
- $box
- $center
- $centerSphere
- $comment
- $each
- $elemMatch (query)
- $exists
- $explain
- $geoIntersects
- $geoWithin
- $geometry
- $gt
- $gte
- $hint
- $in
- $inc
- $isolated
- $lt
- $lte
- $max
- $maxDistance
- $maxScan
- $min
- $mod
- $natural
- $ne
- $near
- $nearSphere
- $nin
- $nor
- $not
- $or
- $orderby
- $polygon
- $pop
- $ (query)
- $pull
- $pullAll
- $push
- $pushAll
- $query
- $regex
- $rename
- $returnKey
- $set
- $setOnInsert
- $showDiskLoc
- $size
- $slice
- $snapshot
- $sort
- $type
- $uniqueDocs
- $unset
- $where
投影操作符:
$elemMatch (projection)- $ (projection)
- $slice (projection)
聚合操作符:
$add (aggregation)- $addToSet (aggregation)
- $and (aggregation)
- $avg (aggregation)
- $cmp (aggregation)
- $concat (aggregation)
- $cond (aggregation)
- $dayOfMonth (aggregation)
- $dayOfWeek (aggregation)
- $dayOfYear (aggregation)
- $divide (aggregation)
- $eq (aggregation)
- $first (aggregation)
- $geoNear (aggregation)
- $group (aggregation)
- $gt (aggregation)
- $gte (aggregation)
- $hour (aggregation)
- $ifNull (aggregation)
- $last (aggregation)
- $limit (aggregation)
- $lt (aggregation)
- $lte (aggregation)
- $match (aggregation)
- $max (aggregation)
- $millisecond (aggregation)
- $min (aggregation)
- $minute (aggregation)
- $mod (aggregation)
- $month (aggregation)
- $multiply (aggregation)
- $ne (aggregation)
- $not (aggregation)
- $or (aggregation)
- $project (aggregation)
- $push (aggregation)
- $second (aggregation)
- $skip (aggregation)
- $sort (aggregation)
- $strcasecmp (aggregation)
- $substr (aggregation)
- $subtract (aggregation)
- $sum (aggregation)
- $toLower (aggregation)
- $toUpper (aggregation)
- $unwind (aggregation)
- $week (aggregation)
- $year (aggregation)