Unsupported Commands in Atlas
On this page
Unsupported Commands in M0/M2/M5
Clusters
Atlas M0
free clusters and M2
/M5
shared clusters don't support all functionality available to
other clusters.
M0
free clusters and M2
/M5
shared clusters don't support read or write operations on the admin
database.
To learn more about M0
/M2
/M5
limitations, see
Atlas M0 (Free Cluster), M2, and M5 Limitations.
Atlas returns the same error message for unsupported commands and invalid syntax. If Atlas returns an error, ensure that you use a supported command and verify the syntax. For more information and examples, see the database commands.
Limited Commands
The following commands can be run with limitations in M0
free clusters and M2
/M5
shared clusters:
Command | Limitation | ||
---|---|---|---|
| |||
Doesn't support $where operator. | |||
Limits execution to these two documents:
| |||
Limits the db.killOp() method to to the MongoDB user
who ran the operation. | |||
Limits response to the following fields:
| |||
Limits to the following document:
|
Unsupported Commands
The following commands are unsupported:
The commands available for clusters of all other tiers, M10
and
larger, correspond to the privileges defined for the built-in
Atlas MongoDB roles.
To learn more about permissions, see Atlas User Privileges.
M0
free clusters, M2
/M5
shared clusters, and
serverless instances don't support the --oplogReplay
option and the --preserveUUID option for
mongorestore
.
Aggregation Pipeline
Atlas doesn't support the $planCacheStats
aggregation pipeline stage.
Unsupported Commands in M10+
Clusters
Atlas requires clients to authenticate to access an Atlas cluster. Atlas provides a curated list of Database User Privileges. These privileges provide access to a subset of MongoDB commands.
Limited Commands
Atlas limits the db.killOp()
method to
the MongoDB user who ran the operation.
Unsupported Commands
The following table lists the most common commands and shell methods that database user privileges do not support. To ensure cluster stability and performance, Atlas subsumes or restricts the functionality that these commands provide.
Administrative
Commands | Shell Method | Privilege Actions |
---|---|---|
Others that use | ||
eval | db.eval() | |
Sessions
Commands | Shell Method | Privilege Actions |
---|---|---|
Replication
M10+
clusters don't support the --preserveUUID option for
mongorestore
.
Sharding
Commands | Shell Method | Privilege Actions |
---|---|---|
[1] | This command is not supported on global write clusters only. |
User and Role Management
As an alternative, see the available Atlas User Roles.
Commands | Shell Method | Privilege Actions |
---|---|---|
getUser [2] | ||
[2] | (1, 2) You can call getUser for your own user account. |
Aggregation Pipeline
Atlas doesn't support the $planCacheStats
aggregation pipeline stage.
MongoDB 4.2+ Incompatibility
MongoDB versions 4.2 and later do not support the following commands and methods:
Commands | Shell Method |
---|---|
parallelCollectionScan | |
clone | |
copydb |
Contact Support
Contact Atlas support if your use case requires access to a command that the Atlas database user privileges don't currently support.
Unsupported Commands in Serverless Instances
Atlas serverless instances don't support the following
database commands and mongosh
shell methods:
Database Command | Shell Method |
---|---|
geoNear (deprecated in MongoDB v4.0) | |
(deprecated in MongoDB v4.4) | |
M0
free clusters, M2
/M5
shared clusters, and
serverless instances don't support the --oplogReplay
option and the --preserveUUID option for
mongorestore
.