文档数据库服务支持与不支持的命令如下:
命令类别 | 命令名称 | 3.4 | 4.0 |
---|---|---|---|
Aggregates Commands | aggregate | √ | √ |
count | √ | √ | |
distinct | √ | √ | |
mapReduce | √ | √ | |
Geospatial Commands | geoNear | √ | √ |
geoSearch | √ | √ | |
Query and Write Operation Commands | find | √ | √ |
insert | √ | √ | |
update | √ | √ | |
delete | √ | √ | |
findAndModify | √ | √ | |
getMore | √ | √ | |
getLastError | √ | √ | |
resetError | √ | √ | |
getPrevError | √ | √ | |
parallelCollectionScan | √ | √ | |
Query Plan Cache Commands | planCacheListFilters | √ | √ |
planCacheSetFilter | √ | √ | |
planCacheClearFilters | √ | √ | |
planCacheListQueryShapes | √ | √ | |
planCacheListPlans | √ | √ | |
planCacheClear | √ | √ | |
Authentication Commands | logout | √ | √ |
authenticate | √ | √ | |
copydbgetnonce | √ | √ | |
getnonce | √ | √ | |
authSchemaUpgrade | x | x | |
User Management Commands | createUser | √ | √ |
updateUser | √ | √ | |
dropUser | √ | √ | |
dropAllUsersFromDatabase | √ | √ | |
grantRolesToUser | √ | √ | |
revokeRolesFromUser | √ | √ | |
usersInfo | √ | √ | |
Role Management Commands | invalidateUserCache | √ | √ |
createRole | √ | √ | |
updateRole | √ | √ | |
dropRole | √ | √ | |
dropAllRolesFromDatabase | √ | √ | |
grantPrivilegesToRole | √ | √ | |
revokePrivilegesFromRole | √ | √ | |
grantRolesToRole | √ | √ | |
revokeRolesFromRole | √ | √ | |
rolesInfo | √ | √ | |
Replication Commands | replSetFreeze | x | x |
replSetGetStatus | √ | √ | |
replSetInitiate | x | x | |
replSetMaintenance | x | x | |
replSetReconfig | x | x | |
replSetStepDown | x | x | |
replSetSyncFrom | x | x | |
isMaster | √ | √ | |
replSetGetConfig | x | x | |
Sharding Commands | flushRouterConfig | x | x |
addShard | x | x | |
addShardToZone | √ | √ | |
balancerStart | √ | √ | |
balancerStatus | √ | √ | |
balancerStop | √ | √ | |
removeShardFromZone | √ | √ | |
updateZoneKeyRange | √ | √ | |
cleanupOrphaned | x | x | |
checkShardingIndex | x | x | |
enableSharding | √ | √ | |
listShards | x | x | |
removeShard | x | x | |
getShardMap | x | x | |
getShardVersion | √ | √ | |
mergeChunks | √ | √ | |
shardCollection | √ | √ | |
shardingState | x | x | |
split | √ | √ | |
splitChunk | √ | √ | |
splitVector | √ | √ | |
moveChunk | √ | √ | |
movePrimary | √ | x | |
isdbgrid | √ | √ | |
Administration Commands | setFeatureCompatibilityVersion | √ | √ |
renameCollection | √ | √ | |
dropDatabase | √ | √ | |
listCollections | √ | √ | |
drop | √ | √ | |
create | √ | √ | |
clone | x | x | |
cloneCollection | x | √ | |
cloneCollectionAsCapped | √ | √ | |
convertToCapped | √ | √ | |
filemd5 | √ | √ | |
createIndexes | √ | √ | |
listIndexes | √ | √ | |
dropIndexes | √ | √ | |
fsync | √ | √ | |
connectionStatus | √ | √ | |
compact | √ | √ | |
collMod | √ | √ | |
reIndex | √ | √ | |
setParameter | x | x | |
getParameter | √ | √ | |
repairDatabase | x | x | |
touch | √ | √ | |
shutdown | x | x | |
logRotate | x | x | |
killOp | √ | √ | |
releaseFreeMemory | √ | √ | |
Diagnostic Commands | availableQueryOptions | √ | √ |
buildInfo | √ | √ | |
collStats | √ | √ | |
connPoolStats | √ | √ | |
cursorInfo | x | x | |
dataSize | √ | √ | |
dbHash | x | x | |
dbStats | √ | √ | |
diagLogging | x | x | |
driverOIDTest | √ | √ | |
explain | √ | √ | |
features | √ | √ | |
getCmdLineOpts | x | x | |
getLog | √ | √ | |
hostInfo | x | x | |
isSelf | √ | √ | |
listCommands | √ | √ | |
listDatabases | √ | √ | |
netstat | √ | √ | |
ping | √ | √ | |
profile | √ | √ | |
serverStatus | √ | √ | |
shardConnPoolStats | x | √ | |
top | √ | √ | |
validate | √ | √ | |
whatsmyuri | √ | √ |