applyOps
On this page
Definition
Compatibility
This command is available in deployments hosted in the following environments:
MongoDB Atlas: The fully managed service for MongoDB deployments in the cloud
Important
This command is not supported in serverless instances. For more information, see Unsupported Commands.
MongoDB Enterprise: The subscription-based, self-managed version of MongoDB
MongoDB Community: The source-available, free-to-use, and self-managed version of MongoDB
Behavior
Warning
This command obtains a global write lock and will block other operations until it has completed.
Required Access
If the specified oplog entries contain
collection UUIDs, executing this command
requires both the useUUID
and forceUUID
privileges on the cluster resource to which the oplog entries are
attempting to be written.