Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Unterstützte Funktionen: 3.6
Die folgenden Tabellen enthalten eine Aufschlüsselung der MongoDB 3.6-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
$setOnInsert
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
$addToSet
Ja
$avg
Ja
$count
Ja
$first
Ja
$last
Ja
$max
Ja
$min
Ja
$push
Ja
$stdDevPop
Nein
$stdDevSamp
Nein
$sum
Ja
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
$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
$objectToArray
Ja
$range
Ja
$reduce
Ja
$reverseArray
Ja
$size
Ja
$slice
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
Datumsoperatoren
Operator:
Unterstützt
$dateFromParts
Nein
$dateFromString
Ja
$dateToParts
Ja
$dateToString
Ja
$dayOfMonth
Ja
$dayOfWeek
Ja
$dayOfYear
Ja
$hour
Ja
$isoDayOfWeek
Ja
$isoWeek
Ja
$isoWeekYear
Ja
$millisecond
Ja
$minute
Ja
$month
Ja
$second
Ja
$week
Ja
$year
Ja
Verschiedene Operatoren
Operator:
Unterstützt
$literal
Ja
$mergeObjects
Ja
$natural
Ja (aufsteigend)
Set-Operatoren
Operator:
Unterstützt
$allElementsTrue
Ja
$anyElementTrue
Ja
$setDifference
Ja
$setEquals
Ja
$setIntersection
Ja
$setIsSubset
Ja
$setUnion
Ja
Bühnenbetreiber
Operator:
Unterstützt
$addFields
Ja
$bucket
Ja
$bucketAuto
Nein
$collStats
Nein
$count
Ja
$currentOp
Nein
$facet
Nein
$geoNear
Nein
$graphLookup
Nein
$group
Ja
$indexStats
Nein
$limit
Ja
$listLocalSessions
Nein
$listSessions
Nein
$lookup
Ja
$match
Ja
$out
Nein
$project
Ja
$redact
Nein
$replaceRoot
Ja
$sample
Nein
$set
Ja
$skip
Ja
$sort
Ja
$sortByCount
Ja
$unset
Ja
$unwind
Ja
String-Operatoren
Operator:
Unterstützt
$concat
Ja
$indexOfBytes
Ja
$indexOfCP
Ja
$split
Ja
$strcasecmp
Ja
$strLenBytes
Ja
$strLenCP
Ja
$substr
Ja
$substrBytes
Ja
$substrCP
Ja
$toLower
Ja
$toUpper
Ja
Systemvariablen
Variable
Unterstützt
$$CURRENT
No
$$DESCEND
Nein
$$KEEP
No
$$PRUNE
Nein
$$REMOVE
Yes
$$ROOT
Ja
Operatoren für die Textsuche
Operator:
Unterstützt
$meta
Nein
Operatoren für die Typkonvertierung
Operator:
Unterstützt
$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
Partiell
Nein
Nicht dünnbesetzt
Ja
Dünnbesetzt
Ja
Text
Nein
TTL
Nein
Eindeutig
Ja
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
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
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
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-04 (UTC)."],[],[],null,["# Supported features: 3.6\n=======================\n\nThe following tables include a breakdown of MongoDB 3.6 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### 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### 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)."]]