Navigation

Unsupported Commands in M0/M2/M5 Clusters

Atlas M0 Free Tier and M2/M5 shared starter clusters don’t support all functionality available to other clusters.

Important

M0 Free Tier and M2/M5 shared starter clusters don’t support read or write operations on the admin database.

For complete documentation on M0/M2/M5 limitations, see Atlas M0 (Free Tier), M2, and M5 Limitations.

Limited Commands

The following commands can be run with limitations in M0 Free Tier and M2/M5 shared starter clusters:

Command Limitation
aggregate
  • Limits the maxTimeMs parameter to 600 seconds (600000).
  • Ignores the allowDiskUsage parameter.
count
  • Doesn’t support the $where operator.
  • Limits count to the system.replset and oplog.rs collections on the local database.
distinct Doesn’t support $where operator.
find
  • Doesn’t support the $where operator.

  • Limits find to the oplog.rs collection on the local database.

  • Limits find to using an equality condition when querying the ns field in the oplog.rs collection on the local database.

    { "ns" : "test.foo" }
    
getParameter

Limits execution to these two documents:

  • { getParameter: 1, authSchemaVersion: 1 }
  • { getParameter: 1, authenticationMechanisms: 1 }
killOp Limits the killOp command to any operation that the database user associated with the same Atlas account has run.
serverStatus

Limits response to the following fields:

  • $clusterTime.clusterTime
  • $clusterTime.operationTime
  • $clusterTime.signature.hash
  • $clusterTime.signature.keyId
  • $clusterTime.signature
  • asserts.msg
  • asserts.regular
  • asserts.rollovers
  • asserts.user
  • asserts.warning
  • atlasVersion.gitVersion
  • atlasVersion.version
  • connections.available
  • connections.current
  • connections.totalCreated
  • extra_info.note
  • extra_info.page_faults
  • host
  • localTime
  • mem.bits
  • mem.mapped
  • mem.mappedWithJournal
  • mem.resident
  • mem.supported
  • mem.virtual
  • metrics.atlas.bytesInWrites
  • metrics.atlas.connectionPool.totalCreated
  • network.bytesIn
  • network.bytesOut
  • network.numRequests
  • ok
  • opcounters.command
  • opcounters.delete
  • opcounters.getmore
  • opcounters.insert
  • opcounters.query
  • opcounters.update
  • opcountersRepl.command
  • opcountersRepl.delete
  • opcountersRepl.getmore
  • opcountersRepl.insert
  • opcountersRepl.query
  • opcountersRepl.update
  • pid
  • process
  • repl.electionId
  • repl.hosts[]
  • repl.ismaster
  • repl.lastWrite.lastWriteDate
  • repl.lastWrite.majorityOpTime.t
  • repl.lastWrite.majorityOpTime.ts
  • repl.lastWrite.majorityWriteDate
  • repl.lastWrite.opTime.t
  • repl.lastWrite.opTime.ts
  • repl.me
  • repl.primary
  • repl.rbid
  • repl.secondary
  • repl.setName
  • repl.setVersion
  • repl.tags.nodeType
  • repl.tags.provider
  • repl.tags.region
  • repl.tags
  • storageEngine.backupCursorOpen
  • storageEngine.dropPendingIdents
  • storageEngine.name
  • storageEngine.oldestRequiredTimestampForCrashRecovery
  • storageEngine.persistent
  • storageEngine.readOnly
  • storageEngine.supportsCommittedReads
  • storageEngine.supportsPendingDrops
  • storageEngine.supportsSnapshotReadConcern
  • uptime
  • uptimeEstimate
  • uptimeMillis
  • version
usersInfo

Limits to the following document:

{ user: <MYUSER>, db: 'admin' }

Unsupported Commands

The following commands are unsupported:

Note

The commands available for clusters of all other tiers, M10 and larger, correspond to the privileges defined for the built-in MongoDB roles used by Atlas. See Atlas User Privileges for more information.

  • _migrateClone
  • _recvChunkAbort
  • _recvChunkCommit
  • _recvChunkStart
  • _recvChunkStatus
  • _transferMods
  • appendOplogNote
  • applyOps
  • authenticate
  • authSchemaUpgrade
  • checkShardingIndex
  • cleanupOrphaned
  • cloneCollection
  • cloneCollectionAsCapped
  • compact
  • connPoolSync
  • copydbgetnonce
  • copydbsaslstart
  • createRole
  • createUser
  • currentOpCtx
  • dataSize
  • dbHash
  • diagLogging
  • dropAllRolesFromDatabase
  • dropAllUsersFromDatabase
  • dropRole
  • enableFreeMonitoring
  • forcerror
  • fsync
  • fsyncUnlock
  • getDiagnosticData
  • getPrevError
  • getShardMap
  • getShardVersion
  • grantPrivilegesToRole
  • grantRolesToRole
  • grantRolesToUser
  • handshake
  • invalidateUserCache
  • killAllSessions
  • killAllSessionsByPattern
  • killSessions
  • lockInfo
  • logRotate
  • mapreduce.shardedfinish
  • mapreduce
  • planCacheClear
  • planCacheClearFilters
  • planCacheListFilters
  • planCacheListPlans
  • planCacheListQueryShapes
  • planCacheSetFilter
  • reIndex
  • repairCursor
  • repairDatabase
  • replSetDeclareElectionWinner
  • replSetElect
  • replSetFreeze
  • replSetFresh
  • replSetGetConfig
  • replSetGetRBID
  • replSetGetStatus
  • replSetHeartbeat
  • replSetInitiate
  • replSetMaintenance
  • replSetReconfig
  • replSetRequestVotes
  • replSetStepDown
  • replSetStepUp
  • replSetSyncFrom
  • replSetUpdatePosition
  • resetError
  • resync
  • revokePrivilegesFromRole
  • revokeRolesFromRole
  • revokeRolesFromUser
  • setFeatureCompatibilityVersion
  • setLogLevel
  • setParameter
  • setProfilingLevel
  • shutdown
  • updateRole
  • updateUser
  • validate

Limitation for mongorestore

As free and shared tier clusters don’t support applyOps, they don’t support the –oplogReplay option for mongorestore either.

Aggregation Pipeline

The $planCacheStats aggregation pipeline stage is not supported in Atlas.