Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Unterstützte Funktionen: 8.0
Die folgenden Tabellen enthalten eine Aufschlüsselung der MongoDB 8.0-Funktionen, die von Firestore mit MongoDB-Kompatibilität unterstützt werden. Informationen zu Verhaltensunterschieden finden Sie unter Verhaltensunterschiede.
Abfrage- und Projektionsoperatoren
Firestore mit MongoDB-Kompatibilität unterstützt die folgenden Abfrage- und Projektionsoperatoren:
Array-Operatoren
Operator:
Unterstützt
$all
Ja
$elemMatch
Ja
$size
Ja
Bitweise Operatoren
Operator:
Unterstützt
$bitsAllClear
Nein
$bitsAllSet
Nein
$bitsAnyClear
Nein
$bitsAnySet
Nein
Kommentaroperator
Operator:
Unterstützt
$comment
Nein
Vergleichsoperator
Operator:
Unterstützt
$eq
Ja
$gt
Ja
$gte
Ja
$in
Ja
$lt
Ja
$lte
Ja
$ne
Ja
$nin
Ja
Elementoperatoren
Operator:
Unterstützt
$exists
Ja
$type
Ja
Operatoren für Bewertungsabfragen
Operator:
Unterstützt
$expr
Ja
$jsonSchema
Nein
$mod
Ja
$regex
Ja
$text
Nein
$where
Nein
Logische Operatoren
Operator:
Unterstützt
$and
Ja
$nor
Ja
$not
Ja
$or
Ja
Projektionsoperatoren
Operator:
Unterstützt
$
Ja
$elemMatch
Ja
$meta
Nein
$slice
Ja
Anbieter aktualisieren
Firestore mit MongoDB-Kompatibilität unterstützt die folgenden Aktualisierungsoperatoren.
Array-Operatoren
Operator:
Unterstützt
$
Ja
$[]
Ja
$[<identifier>]
Ja
$addToSet
Ja
$pop
Ja
$pull
Ja
$pullAll
Ja
$push
Ja
Bitweise Operatoren
Operator:
Unterstützt
$bit
Ja
Feldoperatoren
Operator:
Unterstützt
$currentDate
Ja
$inc
Ja
$max
Ja
$min
Ja
$mul
Ja
$rename
Ja
$set
Ja
$setOnInsert
Ja
$unset
Ja
Modifikatoren aktualisieren
Modifier
Unterstützt
$each
Ja
$position
Ja
$slice
Ja
$sort
Ja
Operatoren für Aggregationspipelines
Firestore mit MongoDB-Kompatibilität unterstützt die folgenden Operatoren für Aggregationspipelines.
Akkumulatorausdrücke
Expression
Unterstützt
$accumulator
Nein
$addToSet
Ja
$avg
Ja
$bottom
Nein
$bottomN
Nein
$count
Ja
$first
Ja
$firstN
Nein
$last
Ja
$lastN
Nein
$max
Ja
$min
Ja
$minN
Nein
$push
Ja
$stdDevPop
Nein
$stdDevSamp
Nein
$sum
Ja
$top
Nein
$topN
Nein
Arithmetischer Operator
Einschränkungen: Arithmetische Operatoren unterstützen keine decimal128-Werte.
Operator:
Unterstützt
$abs
Ja
$add
Ja
$ceil
Ja
$divide
Ja
$exp
Ja
$floor
Ja
$ln
Ja
$log
Ja
$log10
Ja
$mod
Ja
$multiply
Ja
$pow
Ja
$round
Ja
$sqrt
Ja
$subtract
Ja
$trunc
Ja
Array-Operatoren
Operator:
Unterstützt
$arrayElemAt
Ja
$arrayToObject
Ja
$concatArrays
Ja
$filter
Ja
$firstN
Ja
$in
Ja
$indexOfArray
Ja
$isArray
Ja
$lastN
Ja
$maxN
Ja
$minN
Ja
$objectToArray
Ja
$range
Ja
$reduce
Ja
$reverseArray
Ja
$size
Ja
$slice
Ja
$sortArray
Ja
$zip
Ja
Boolesche Operatoren
Operator:
Unterstützt
$and
Ja
$not
Ja
$or
Ja
Vergleichsoperator
Operator:
Unterstützt
$cmp
Ja
$eq
Ja
$gt
Ja
$gte
Ja
$lt
Ja
$lte
Ja
$ne
Ja
Operatoren für bedingte Ausdrücke
Operator:
Unterstützt
$cond
Ja
$ifNull
Ja
$switch
Ja
Operatoren für die Datengröße
Operator:
Unterstützt
$binarySize
Ja
$bsonSize
Ja
Datumsoperatoren
Operator:
Unterstützt
$dateAdd
Nein
$dateDiff
Nein
$dateFromParts
Nein
$dateFromString
Ja
$dateSubtract
Nein
$dateToParts
Ja
$dateToString
Ja
$dateTrunc
Ja
$dayOfMonth
Ja
$dayOfWeek
Ja
$dayOfYear
Ja
$hour
Ja
$isoDayOfWeek
Ja
$isoWeek
Ja
$isoWeekYear
Ja
$millisecond
Ja
$minute
Ja
$month
Ja
$second
Ja
$tsIncrement
Nein
$tsSecond
Nein
$week
Ja
$year
Ja
Verschiedene Operatoren
Operator:
Unterstützt
$getField
Ja
$literal
Ja
$mergeObjects
Ja
$natural
Ja (aufsteigend)
$rand
Nein
$sampleRate
Nein
Set-Operatoren
Operator:
Unterstützt
$allElementsTrue
Ja
$anyElementTrue
Ja
$setDifference
Ja
$setEquals
Ja
$setIntersection
Ja
$setIsSubset
Ja
$setUnion
Ja
$setWindowFields
Nein
Bühnenbetreiber
Operator:
Unterstützt
$addFields
Ja
$bucket
Ja
$bucketAuto
Nein
$changeStreams
Nein
$collStats
Nein
$count
Ja
$currentOp
Nein
$documents
Ja
$facet
Nein
$geoNear
Nein
$graphLookup
Nein
$group
Ja
$indexStats
Nein
$limit
Ja
$listLocalSessions
Nein
$listSessions
Nein
$lookup
Ja
$match
Ja
$merge
Nein
$out
Nein
$planCacheStats
Nein
$project
Ja
$redact
Nein
$replaceRoot
Ja
$replaceWith
Ja
$sample
Nein
$set
Ja
$setWindowFields
Nein
$skip
Ja
$sort
Ja
$sortByCount
Ja
$unionWith
Nein
$unset
Ja
$unwind
Ja
String-Operatoren
Operator:
Unterstützt
$concat
Ja
$indexOfBytes
Ja
$indexOfCP
Ja
$ltrim
Ja
$regexFind
Ja
$regexFindAll
Ja
$regexMatch
Ja
$replaceAll
Ja
$replaceOne
Ja
$rtrim
Ja
$split
Ja
$strcasecmp
Ja
$strLenBytes
Ja
$strLenCP
Ja
$substr
Ja
$substrBytes
Ja
$substrCP
Ja
$toLower
Ja
$toUpper
Ja
$trim
Ja
Systemvariablen
Variable
Unterstützt
$$CLUSTERTIME
No
$$CURRENT
Nein
$$DESCEND
No
$$KEEP
Nein
$$NOW
Yes
$$PRUNE
Nein
$$REMOVE
Yes
$$ROOT
Ja
Operatoren für die Textsuche
Operator:
Unterstützt
$meta
Nein
$search
Nein
Trigonometrieoperatoren
Operator:
Unterstützt
$acos
Nein
$acosh
Nein
$asin
Nein
$asinh
Nein
$atan
Nein
$atan2
Nein
$atanh
Nein
$cos
Nein
$cosh
Nein
$degreesToRadians
Nein
$radiansToDegrees
Nein
$sin
Nein
$sinh
Nein
$tan
Nein
$tanh
Nein
Operatoren für die Typkonvertierung
Operator:
Unterstützt
$convert
Ja
$isNumber
Ja
$toBool
Ja
$toDate
Ja
$toDecimal
Ja
$toDouble
Ja
$toInt
Ja
$toLong
Ja
$toObjectId
Ja
$toString
Ja
$type
Ja
Variablenoperatoren
Operator:
Unterstützt
$let
Ja
$map
Ja
Geodaten
Firestore mit MongoDB-Kompatibilität unterstützt die folgenden geografischen Operatoren.
Geometriespezifizierer
Spezifizierer
Unterstützt
$box
Nein
$center
Nein
$centerSphere
Nein
$geometry
Nein
$maxDistance
Nein
$minDistance
Nein
$polygon
Nein
$uniqueDocs
Nein
Abfrageselektoren
Selector
Unterstützt
$geoIntersects
Nein
$geoWithin
Nein
$near
Nein
$nearSphere
Nein
$nearSphere
Nein
$uniqueDocs
Nein
Indexe und Indexattribute
Firestore mit MongoDB-Kompatibilität unterstützt die folgenden Indexe und Indexoperatoren.
Indexe
Indextyp
Unterstützt
2 d
Nein
2dsphere
Nein
Komplex
Ja
Gehasht
Nein
Mehrere Schlüssel
Ja
Einzelfeld
Ja
Text
Nein
Indexeigenschaften
Attribut
Unterstützt
Hintergrund
Ja
Groß-/Kleinschreibung wird nicht berücksichtigt
Nein
Ausgeblendet
Nein
Partiell
Nein
Nicht dünnbesetzt
Ja
Dünnbesetzt
Ja
Text
Nein
TTL
Nein
Eindeutig
Ja
Platzhalter
Nein
Vektor
Nein
Datenbankbefehle
Firestore mit MongoDB-Kompatibilität unterstützt die folgenden Datenbankbefehle.
Aggregation
Befehl
Unterstützt
aggregate
Ja
count
Ja
distinct
Ja
group
Nein
Die $group-Phase in Aggregationen wird unterstützt, der Gruppenbefehl jedoch nicht.
mapReduce
Nein
Authentifizierung
Befehl
Unterstützt
authenticate
Nein
getnonce
Nein
logout
Nein
Abfrage- und Schreibvorgänge
Befehl
Unterstützt
watch (Änderungsstreams)
Nein
delete
Ja
eval
Nein
find
Ja
findAndModify
Ja
getLastError
Ja
getMore
Ja
getPrevError
Nein
GridFS
Nein
insert
Ja
parallelCollectionScan
Nein
replaceOne
Nein
Die Treibermethode replaceOne wird mit dem Befehl update unterstützt.
resetError
Nein
update
Ja
Sitzungsbefehle
Befehl
Unterstützt
abortTransaction
Ja
commitTransaction
Ja
endSessions
Ja
killAllSessions
Nein
killAllSessionsByPattern
Nein
killSessions
Nein
refreshSessions
Nein
startSession
Sitzungen können mit der startSession-Treibermethode gestartet werden.
Verwaltungsbefehle
Firestore mit MongoDB-Kompatibilität unterstützt die folgenden administrativen Befehle.
Befehl
Unterstützt
cloneCollectionAsCapped
Nein
collMod
Nein
collMod: expireAfterSeconds
Nein
convertToCapped
Nein
copydb
Nein
create
Ja
createIndex
Ja
Informationen zum Erstellen von Indexen finden Sie unter Indexe verwalten.
createIndexes
Ja
Informationen zum Erstellen von Indexen finden Sie unter Indexe verwalten.
createView
Nein
currentOp
Nein
drop
Nein
dropDatabase
Nein
Informationen zum Löschen einer Datenbank finden Sie unter Datenbank löschen.
dropIndex
Ja
Informationen zum Löschen von Indexen finden Sie unter Indexe verwalten.
dropIndexes
Nein
filemd5
Nein
getAuditConfig
Nein
killCursors
Ja
killOp
Nein
listCollections
Ja
listDatabases
Ja
listIndexes
Ja
reIndex
Nein
renameCollection
Nein
setAuditConfig
Nein
Diagnosebefehle
Befehl
Unterstützt
buildInfo
Ja
collStats
Nein
connectionStatus
Ja
connPoolStats
Nein
dataSize
Nein
dbHash
Nein
dbStats
Nein
explain
Ja
Informationen zu Verhaltensunterschieden und Einschränkungen finden Sie unter Query Explain.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-09-03 (UTC)."],[],[],null,["# Supported features: 8.0\n=======================\n\nThe following tables include a breakdown of MongoDB 8.0 features supported by\nFirestore with MongoDB compatibility. For differences in behavior, see\n[Behavior differences](/firestore/mongodb-compatibility/docs/behavior-differences).\n\nQuery and projection operators\n------------------------------\n\nFirestore with MongoDB compatibility supports the following query and projection operators:\n\n### Array operators\n\n### Bitwise operators\n\n### Comment operator\n\n### Comparison operators\n\n### Element operators\n\n### Evaluation query operators\n\n### Logical operators\n\n### Projection operators\n\nUpdate operators\n----------------\n\nFirestore with MongoDB compatibility supports the following update operators.\n\n### Array operators\n\n### Bitwise operators\n\n### Field operators\n\n### Update modifiers\n\nAggregation pipeline operators\n------------------------------\n\nFirestore with MongoDB compatibility supports the following aggregation pipeline operators.\n\n### Accumulator expressions\n\n### Arithmetic operators\n\n**Limitations** : Arithmetic operators don't support `decimal128` values.\n\n### Array operators\n\n### Boolean operators\n\n### Comparison operators\n\n### Conditional expression operators\n\n### Data size operators\n\n\u003cbr /\u003e\n\n### Date operators\n\n### Miscellaneous operators\n\n### Set operators\n\n### Stage operators\n\n### String operators\n\n### System variables\n\n### Text search operators\n\n### Trigonometry operators\n\n\u003cbr /\u003e\n\n### Type conversion operators\n\n### Variable operators\n\nGeospatial\n----------\n\nFirestore with MongoDB compatibility supports the following Geospatial operators.\n\n### Geometry specifiers\n\n### Query selectors\n\nIndexes and index properties\n----------------------------\n\nFirestore with MongoDB compatibility supports the following indexes and index operators.\n\n### Indexes\n\n### Index properties\n\nDatabase commands\n-----------------\n\nFirestore with MongoDB compatibility supports the following database commands.\n\n### Aggregation\n\n### Authentication\n\n### Query and write operations\n\n### Session commands\n\nAdministrative commands\n-----------------------\n\nFirestore with MongoDB compatibility supports the following administrative commands.\n\n### Diagnostic commands\n\n### Role management commands\n\nTo manage database access, Firestore with MongoDB compatibility supports\n[Identity and Access Management roles and permissions](/firestore/mongodb-compatibility/docs/security/iam).\n\nWhat's next\n-----------\n\n- Run the [Quickstart: Create a database and connect to it](/firestore/mongodb-compatibility/docs/create-and-query-database).\n- Learn about [Behavior differences](/firestore/mongodb-compatibility/docs/behavior-differences)."]]