
# 支持与限制的命令
用户在连接到GeminiDB Mongo数据库后，需要关注以下支持以及限制的命令。
更多信息，请参见[MongoDB官方文档](https://docs.mongodb.com/master/reference/command/?spm=a2c4g.11186623.2.7.652c53daMEfJMP)。
表14.0版本支持与限制的命令 
| **命令类别**                           | **命令名称**                       | **是否支持该命令** | **备注**                    |
|:---|:---|:---|:---|
| Aggregates Commands                | aggregate                      | √           | -                         |
| Aggregates Commands                | count                          | √           | -                         |
| Aggregates Commands                | distinct                       | √           | -                         |
| Aggregates Commands                | group                          | √           | -                         |
| Aggregates Commands                | mapReduce                      | √           | -                         |
| Geospatial Commands                | geoNear                        | √           | -                         |
| Geospatial Commands                | geoSearch                      | ×           |  副本集不支持。            |
| Query and Write Operation Commands | find                           | √           | -                         |
| Query and Write Operation Commands | insert                         | √           | -                         |
| Query and Write Operation Commands | update                         | √           | -                         |
| Query and Write Operation Commands | delete                         | √           | -                         |
| Query and Write Operation Commands | findAndModify                  | √           | -                         |
| Query and Write Operation Commands | getMore                        | √           | -                         |
| Query and Write Operation Commands | getLastError                   | √           | -                         |
| Query and Write Operation Commands | parallelCollectionScan         | x           | 系统内部命令。                   |
| Query Plan Cache Commands          | planCacheListFilters           | √           | -                         |
| Query Plan Cache Commands          | planCacheSetFilter             | √           | -                         |
| Query Plan Cache Commands          | planCacheClearFilters          | √           | -                         |
| Query Plan Cache Commands          | planCacheListQueryShapes       | √           | -                         |
| Query Plan Cache Commands          | planCacheListPlans             | √           | -                         |
| Query Plan Cache Commands          | planCacheClear                 | √           | -                         |
| Authentication Commands            | logout                         | √           | -                         |
| Authentication Commands            | authenticate                   | √           | -                         |
| Authentication Commands            | getnonce                       | √           | -                         |
| User Management Commands           | createUser                     | √           | -                         |
| User Management Commands           | updateUser                     | √           | -                         |
| User Management Commands           | dropUser                       | √           | -                         |
| User Management Commands           | dropAllUsersFromDatabase       | √           | -                         |
| User Management Commands           | grantRolesToUser               | √           | -                         |
| User Management Commands           | revokeRolesFromUser            | √           | -                         |
| User Management Commands           | usersInfo                      | √           | -                         |
| Role Management Commands           | invalidateUserCache            | √           | -                         |
| Role Management Commands           | createRole                     | √           | -                         |
| Role Management Commands           | updateRole                     | √           | -                         |
| Role Management Commands           | dropRole                       | √           | -                         |
| Role Management Commands           | dropAllRolesFromDatabase       | √           | -                         |
| Role Management Commands           | grantPrivilegesToRole          | √           | -                         |
| Role Management Commands           | revokePrivilegesFromRole       | √           | -                         |
| Role Management Commands           | grantRolesToRole               | √           | -                         |
| Role Management Commands           | revokeRolesFromRole            | √           | -                         |
| Role Management Commands           | rolesInfo                      | √           | -                         |
| Replication Commands               | replSetFreeze                  | x           | 系统内部命令。                   |
| Replication Commands               | replSetGetStatus               | √           |  副本集支持。             |
| Replication Commands               | replSetInitiate                | x           | 系统内部命令。                   |
| Replication Commands               | replSetMaintenance             | x           | 系统内部命令。                   |
| Replication Commands               | replSetReconfig                | x           | 系统内部命令。                   |
| Replication Commands               | replSetStepDown                | x           | 系统内部命令。                   |
| Replication Commands               | replSetSyncFrom                | x           | 系统内部命令。                   |
| Replication Commands               | resync                         | x           | 系统内部命令。                   |
| Replication Commands               | applyOps                       | x           | 系统内部命令。                   |
| Replication Commands               | isMaster                       | √           | -                         |
| Replication Commands               | replSetGetConfig               | x           | 系统内部命令。                   |
| Sharding Commands                  | flushRouterConfig              | x           | 系统内部命令。                   |
| Sharding Commands                  | addShard                       | x           | 系统内部命令。                   |
| Sharding Commands                  | addShardToZone                 | x           | 系统内部命令。                   |
| Sharding Commands                  | balancerStart                  | x           | 系统内部命令。                   |
| Sharding Commands                  | balancerStatus                 | √           | 系统内部命令。                   |
| Sharding Commands                  | balancerStop                   | x           | 系统内部命令。                   |
| Sharding Commands                  | removeShardFromZone            | x           | 系统内部命令。                   |
| Sharding Commands                  | updateZoneKeyRange             | x           | 系统内部命令。                   |
| Sharding Commands                  | cleanupOrphaned                | x           | 高危命令。                     |
| Sharding Commands                  | checkShardingIndex             | x           | 系统内部命令。                   |
| Sharding Commands                  | enableSharding                 | √           | -                         |
| Sharding Commands                  | listShards                     | √           | 系统内部命令。                   |
| Sharding Commands                  | removeShard                    | x           | 高危命令。                     |
| Sharding Commands                  | getShardMap                    | x           | 系统内部命令。                   |
| Sharding Commands                  | getShardVersion                | x           | 系统内部命令。                   |
| Sharding Commands                  | mergeChunks                    | x           | 系统内部命令。                   |
| Sharding Commands                  | setShardVersion                | x           | 系统内部命令。                   |
| Sharding Commands                  | shardCollection                | √           | 目前，只支持空表做shardCollection。 |
| Sharding Commands                  | shardingState                  | x           | 系统内部命令。                   |
| Sharding Commands                  | unsetSharding                  | x           | 系统内部命令。                   |
| Sharding Commands                  | split                          | x           | 系统内部命令                    |
| Sharding Commands                  | splitChunk                     | x           | 系统内部命令。                   |
| Sharding Commands                  | splitVector                    | x           | 系统内部命令。                   |
| Sharding Commands                  | moveChunk                      | x           | 系统内部命令。                   |
| Sharding Commands                  | movePrimary                    | x           | 系统内部命令。                   |
| Sharding Commands                  | isdbgrid                       | √           | -                         |
| Sessions Commands                  | abortTransaction               | √           |  副本集支持。             |
| Sessions Commands                  | commitTransaction              | √           |  副本集支持。             |
| Sessions Commands                  | endSessions                    | √           | -                         |
| Sessions Commands                  | killAllSessions                | √           | -                         |
| Sessions Commands                  | killAllSessionsByPattern       | √           | -                         |
| Sessions Commands                  | killSessions                   | √           | -                         |
| Sessions Commands                  | refreshSessions                | √           | -                         |
| Sessions Commands                  | startSession                   | √           | -                         |
| Administration Commands            | setFeatureCompatibilityVersion | √           | -                         |
| Administration Commands            | renameCollection               | √           | -                         |
| Administration Commands            | dropDatabase                   | √           | -                         |
| Administration Commands            | listCollections                | √           | -                         |
| Administration Commands            | drop                           | √           | -                         |
| Administration Commands            | create                         | √           | -                         |
| Administration Commands            | clone                          | x           | 系统内部命令。                   |
| Administration Commands            | cloneCollection                | x           | 系统内部命令。                   |
| Administration Commands            | cloneCollectionAsCapped        | x           | 系统内部命令。                   |
| Administration Commands            | convertToCapped                | √           | -                         |
| Administration Commands            | filemd5                        | √           | -                         |
| Administration Commands            | createIndexes                  | √           | -                         |
| Administration Commands            | listIndexes                    | √           | -                         |
| Administration Commands            | dropIndexes                    | √           | -                         |
| Administration Commands            | fsync                          | √           | -                         |
| Administration Commands            | clean                          | x           | 系统内部命令。                   |
| Administration Commands            | connPoolSync                   | x           | 系统内部命令。                   |
| Administration Commands            | connectionStatus               | √           | -                         |
| Administration Commands            | compact                        | x           | 高危命令。                     |
| Administration Commands            | collMod                        | √           | -                         |
| Administration Commands            | reIndex                        | √           | -                         |
| Administration Commands            | setParameter                   | x           | 系统配置命令。                   |
| Administration Commands            | getParameter                   | √           | -                         |
| Administration Commands            | repairDatabase                 | x           | 高危命令。                     |
| Administration Commands            | touch                          | x           | 存储引擎不支持。                  |
| Administration Commands            | shutdown                       | x           | 高危命令。                     |
| Administration Commands            | logRotate                      | x           | 高危命令。                     |
| Administration Commands            | killOp                         | √           | -                         |
| Diagnostic Commands                | availableQueryOptions          | √           | -                         |
| Diagnostic Commands                | buildInfo                      | √           | -                         |
| Diagnostic Commands                | collStats                      | √           | -                         |
| Diagnostic Commands                | connPoolStats                  | x           | 系统内部命令。                   |
| Diagnostic Commands                | dataSize                       | √           | -                         |
| Diagnostic Commands                | dbHash                         | x           | 系统内部命令。                   |
| Diagnostic Commands                | dbStats                        | √           | -                         |
| Diagnostic Commands                | driverOIDTest                  | x           | 系统内部命令。                   |
| Diagnostic Commands                | explain                        | √           | -                         |
| Diagnostic Commands                | features                       | √           | -                         |
| Diagnostic Commands                | getCmdLineOpts                 | x           | 系统内部命令。                   |
| Diagnostic Commands                | getLog                         | x           | 系统内部命令。                   |
| Diagnostic Commands                | hostInfo                       | x           | 系统内部命令。                   |
| Diagnostic Commands                | isSelf                         | x           | 系统内部命令。                   |
| Diagnostic Commands                | listCommands                   | √           | -                         |
| Diagnostic Commands                | listDatabases                  | √           | -                         |
| Diagnostic Commands                | netstat                        | x           | 系统内部命令。                   |
| Diagnostic Commands                | ping                           | √           | -                         |
| Diagnostic Commands                | profile                        | √           | -                         |
| Diagnostic Commands                | serverStatus                   | √           | -                         |
| Diagnostic Commands                | shardConnPoolStats             | x           | 系统内部命令。                   |
| Diagnostic Commands                | top                            | x           | 系统内部命令。                   |
| Diagnostic Commands                | validate                       | x           | 系统配置命令。                   |
| Diagnostic Commands                | whatsmyuri                     | √           | -                         |
| System Events Auditing Commands    | logApplicationMessage          | x           | 系统内部命令。                   |
   
