数据库教程
Sakila
MySQL
MySQL 参考
PostgreSQL
MongoDB 参考资料
本页整理了学习和使用 MongoDB 的相关资料,包括常用的函数、操作符。
MongoDB 比较运算符
$cmp
$eq
$exists
$gt
$gte
$in
$lt
$lte
$ne
$nin
$type
MongoDB 布尔运算符
$and
$not
$or
MongoDB 更新运算符
$addToSet
$currentDate
$inc
$mul
$pop
$pull
$pullAll
$push
$setOnInsert
$sort
MongoDB 集合方法
aggregate
bulkWrite
count
countDocuments
createIndex
createIndexes
dataSize
deleteMany
deleteOne
distinct
drop
dropIndex
dropIndexes
ensureIndex
estimatedDocumentCount
explain
find
findAndModify
findOne
findOneAndDelete
findOneAndReplace
findOneAndUpdate
getIndexes
getShardDistribution
getShardVersion
hideIndex
insert
insertMany
insertOne
isCapped
latencyStats
mapReduce
reIndex
remove
renameCollection
replaceOne
stats
storageSize
totalIndexSize
totalSize
unhideIndex
update
updateMany
updateOne
validate
watch
MongoDB 集合运算符
$allElementsTrue
$anyElementTrue
$setDifference
$setEquals
$setIntersection
$setIsSubset
$setUnion
MongoDB 聚合运算符
$avg
$count
$first
$last
$max
$min
$sortByCount
$stdDevPop
$stdDevSamp
$sum
MongoDB 类型转换运算符
$convert
$isNumber
$toBool
$toDate
$toDecimal
$toDouble
$toInt
$toLong
$toObjectId
$toString
MongoDB 日期运算符
$dateFromParts
$dateFromString
$dateToParts
$dateToString
$dayOfMonth
$dayOfWeek
$dayOfYear
$hour
$isoDayOfWeek
$isoWeek
$isoWeekYear
$millisecond
$minute
$month
$second
$week
$year
Date()
MongoDB 三角运算符
$acos
$acosh
$asin
$asinh
$atan
$atan2
$atanh
$cos
$cosh
$degreesToRadians
$radiansToDegrees
$sin
$sinh
$tan
$tanh
MongoDB 数组运算符
$arrayElemAt
$arrayToObject
$concatArrays
$filter
$indexOfArray
$isArray
$objectToArray
$range
$reverseArray
$size
$slice
MongoDB 算术运算符
$abs
$add
$ceil
$divide
$exp
$floor
$ln
$log
$log10
$mod
$multiply
$pow
$rand
$round
$sqrt
$subtract
$trunc
MongoDB 条件运算符
$cond
$ifNull
$switch
MongoDB 游标函数
cursor.addOption
cursor.allowDiskUse
cursor.allowPartialResults
cursor.batchSize
cursor.close
cursor.collation
cursor.comment
cursor.count
cursor.explain
cursor.forEach
cursor.hasNext
cursor.hint
cursor.isClosed
cursor.isExhausted
cursor.itcount
cursor.limit
cursor.map
cursor.max
cursor.maxawaittimems
cursor.maxTimeMS
cursor.min
cursor.next
cursor.noCursorTimeout
cursor.objsLeftInBatch
cursor.pretty
cursor.readConcern
cursor.readPref
cursor.returnKey
cursor.showRecordId
cursor.size
cursor.skip
cursor.sort
cursor.tailable
cursor.toArray
cursor.tryNext
MongoDB 字符串运算符
$concat
$indexOfBytes
$indexOfCP
$ltrim
$replaceAll
$replaceOne
$rtrim
$split
$strcasecmp
$strLenBytes
$strLenCP
$substrBytes
$substrCP
$toLower
$toUpper
$trim
其他
$binarySize
$bsonSize
$literal
$mergeObjects
$orderBy
$sample
$sampleRate
Object.bsonSize()