サポートされている機能: 8.0

次の表に、MongoDB 互換の Firestore でサポートされている MongoDB 8.0 の機能の詳細を示します。動作の違いについては、動作の違いをご覧ください。

クエリ演算子と射影演算子

MongoDB 互換の Firestore は、次のクエリ演算子と射影演算子をサポートしています。

配列演算子

オペレーター サポート対象
$all
$elemMatch
$size

ビット演算子

オペレーター サポート対象
$bitsAllClear いいえ
$bitsAllSet いいえ
$bitsAnyClear いいえ
$bitsAnySet いいえ

コメント演算子

オペレーター サポート対象
$comment いいえ

比較演算子

オペレーター サポート対象
$eq
$gt
$gte
$in
$lt
$lte
$ne
$nin

要素演算子

オペレーター サポート対象
$exists
$type

評価クエリ演算子

オペレーター サポート対象
$expr
$jsonSchema いいえ
$mod
$regex
$text いいえ
$where いいえ

論理演算子

オペレーター サポート対象
$and
$nor
$not
$or

射影演算子

オペレーター サポート対象
$ いいえ
$elemMatch
$meta いいえ
$slice

更新オペレーター

MongoDB 互換の Firestore は、次の更新演算子をサポートしています。

配列演算子

オペレーター サポート対象
$ いいえ
$[] いいえ
$[<identifier>] いいえ
$addToSet いいえ
$pop いいえ
$pull いいえ
$pullAll いいえ
$push いいえ

ビット演算子

オペレーター サポート対象
$bit

フィールド演算子

オペレーター サポート対象
$currentDate
$inc
$max
$min
$mul
$rename
$set
$setOnInsert
$unset

修飾子を更新する

修飾子 サポート対象
$each いいえ
$position いいえ
$slice いいえ
$sort いいえ

集計パイプライン演算子

MongoDB 互換の Firestore は、次の集計パイプライン演算子をサポートしています。

累積式

サポート対象
$accumulator いいえ
$addToSet いいえ
$avg
$bottom いいえ
$bottomN いいえ
$count
$first
$firstN いいえ
$last
$lastN いいえ
$max
$min
$minN いいえ
$push
$stdDevPop いいえ
$stdDevSamp いいえ
$sum
$top いいえ
$topN いいえ

算術演算子

オペレーター サポート対象
$abs
$add
$ceil
$divide
$exp いいえ
$floor
$ln いいえ
$log いいえ
$log10 いいえ
$mod
$multiply
$pow いいえ
$round
$sqrt いいえ
$subtract
$trunc いいえ

配列演算子

オペレーター サポート対象
$arrayElemAt
$arrayToObject
$concatArrays
$filter いいえ
$firstN いいえ
$in
$indexOfArray いいえ
$isArray
$lastN いいえ
$maxN いいえ
$minN いいえ
$objectToArray いいえ
$range いいえ
$reduce いいえ
$reverseArray
$size
$slice
$sortArray いいえ
$zip いいえ

ブール演算子

オペレーター サポート対象
$and
$not
$or

比較演算子

オペレーター サポート対象
$cmp
$eq
$gt
$gte
$lt
$lte
$ne

条件式演算子

オペレーター サポート対象
$cond
$ifNull
$switch

データサイズ演算子

オペレーター サポート対象
$binarySize いいえ
$bsonSize いいえ

日付演算子

オペレーター サポート対象
$dateAdd いいえ
$dateDiff いいえ
$dateFromParts いいえ
$dateFromString
$dateSubtract いいえ
$dateToParts
$dateToString
$dateTrunc いいえ
$dayOfMonth
$dayOfWeek
$dayOfYear
$hour
$isoDayOfWeek
$isoWeek
$isoWeekYear
$millisecond
$minute
$month
$second
$tsIncrement いいえ
$tsSecond いいえ
$week
$year

その他の演算子

オペレーター サポート対象
$getField
$literal
$mergeObjects いいえ
$natural いいえ
$rand いいえ
$sampleRate いいえ

集合演算子

オペレーター サポート対象
$allElementsTrue いいえ
$anyElementTrue いいえ
$setDifference いいえ
$setEquals いいえ
$setIntersection いいえ
$setIsSubset いいえ
$setUnion いいえ
$setWindowFields いいえ

ステージ演算子

オペレーター サポート対象
$addFields
$bucket いいえ
$bucketAuto いいえ
$changeStreams いいえ
$collStats いいえ
$count
$currentOp いいえ
$documents
$facet いいえ
$geoNear いいえ
$graphLookup いいえ
$group
$indexStats いいえ
$limit
$listLocalSessions いいえ
$listSessions いいえ
$lookup いいえ
$match
$merge いいえ
$out いいえ
$planCacheStats いいえ
$project
$redact いいえ
$replaceRoot
$replaceWith
$sample いいえ
$set
$setWindowFields いいえ
$skip
$sort
$sortByCount
$unionWith いいえ
$unset
$unwind

文字列演算子

オペレーター サポート対象
$concat
$indexOfBytes
$indexOfCP
$ltrim
$regexFind
$regexFindAll
$regexMatch
$replaceAll
$replaceOne
$rtrim
$split
$strcasecmp
$strLenBytes
$strLenCP
$substr
$substrBytes
$substrCP
$toLower
$toUpper
$trim

システム変数

変数 サポート対象
$$CLUSTERTIME No
$$CURRENT いいえ
$$DESCEND No
$$KEEP いいえ
$$NOW Yes
$$PRUNE いいえ
$$REMOVE Yes
$$ROOT

テキスト検索演算子

オペレーター サポート対象
$meta いいえ
$search いいえ

三角演算子

オペレーター サポート対象
$acos いいえ
$acosh いいえ
$asin いいえ
$asinh いいえ
$atan いいえ
$atan2 いいえ
$atanh いいえ
$cos いいえ
$cosh いいえ
$degreesToRadians いいえ
$radiansToDegrees いいえ
$sin いいえ
$sinh いいえ
$tan いいえ
$tanh いいえ

型変換演算子

オペレーター サポート対象
$convert いいえ
$isNumber
$toBool
$toDate いいえ
$toDecimal いいえ
$toDouble いいえ
$toInt いいえ
$toLong いいえ
$toObjectId いいえ
$toString いいえ
$type いいえ

変数演算子

オペレーター サポート対象
$let いいえ
$map いいえ

地理空間

MongoDB 互換の Firestore は、次のジオ空間演算子をサポートしています。

ジオメトリ指定子

指定子 サポート対象
$box いいえ
$center いいえ
$centerSphere いいえ
$geometry いいえ
$maxDistance いいえ
$minDistance いいえ
$polygon いいえ
$uniqueDocs いいえ

クエリセレクタ

セレクタ サポート対象
$geoIntersects いいえ
$geoWithin いいえ
$near いいえ
$nearSphere いいえ
$nearSphere いいえ
$uniqueDocs いいえ

インデックスとインデックス プロパティ

MongoDB 互換の Firestore は、次のインデックスとインデックス演算子をサポートしています。

インデックス

インデックスのタイプ サポート対象
2 日 いいえ
2dsphere いいえ
複合
ハッシュ化 いいえ
マルチキー
単一フィールド
テキスト いいえ

インデックスのプロパティ

プロパティ サポート対象
背景
大文字と小文字の区別なし いいえ
非表示 いいえ
一部 いいえ
非スパース
スパース
テキスト いいえ
TTL いいえ
特有の機能 いいえ
ワイルドカード いいえ
Vector いいえ

データベース コマンド

MongoDB 互換の Firestore は、次のデータベース コマンドをサポートしています。

集計

コマンド サポート対象
aggregate
count
distinct
group

いいえ

集計の $group ステージはサポートされていますが、グループ コマンドはサポートされていません。

mapReduce いいえ

認証

コマンド サポート対象
authenticate いいえ
getnonce いいえ
logout いいえ

クエリと書き込みオペレーション

コマンド サポート対象
watch(変更ストリーム) いいえ
delete
eval いいえ
find
findAndModify
getLastError
getMore
getPrevError いいえ
GridFS いいえ
insert
parallelCollectionScan いいえ
replaceOne

いいえ

replaceOne ドライバ メソッドは、update コマンドでサポートされています。

resetError いいえ
update

セッション コマンド

コマンド サポート対象
abortTransaction
commitTransaction
endSessions
killAllSessions いいえ
killAllSessionsByPattern いいえ
killSessions いいえ
refreshSessions いいえ
startSession

セッションは、startSession ドライバ メソッドを使用して開始できます。

管理コマンド

MongoDB 互換の Firestore は、次の管理コマンドをサポートしています。

コマンド サポート対象
cloneCollectionAsCapped いいえ
collMod いいえ
collMod: expireAfterSeconds いいえ
convertToCapped いいえ
copydb いいえ
create
createIndexes

いいえ

インデックスを作成する方法については、インデックスの管理をご覧ください。

createView いいえ
currentOp いいえ
drop いいえ
dropDatabase

いいえ

データベースを削除するには、データベースを削除するをご覧ください。

dropIndexes

いいえ

インデックスを削除する方法については、インデックスの管理をご覧ください。

filemd5 いいえ
getAuditConfig いいえ
killCursors
killOp いいえ
listCollections
listDatabases
listIndexes
reIndex いいえ
renameCollection いいえ
setAuditConfig いいえ

診断コマンド

コマンド サポート対象
buildInfo
collStats いいえ
connectionStatus
connPoolStats いいえ
dataSize いいえ
dbHash いいえ
dbStats いいえ
explain いいえ
explain: executionStats いいえ
features いいえ
hello
hostInfo
listCommands いいえ
profiler いいえ
serverStatus いいえ
top いいえ
whatsmyuri いいえ

ロール管理コマンド

データベース アクセスを管理するため、MongoDB 互換の Firestore は Identity and Access Management のロールと権限をサポートしています。

コマンド サポート対象
createRole いいえ
dropAllRolesFromDatabase いいえ
dropRole いいえ
grantRolesToRole いいえ
revokePrivilegesFromRole いいえ
revokeRolesFromRole いいえ
rolesInfo いいえ
updateRole いいえ

次のステップ