You can enable Atlas Device Sync via the App UI, Realm CLI, or the App Services Admin API. If it is your first time enabling Device Sync, the UI is a great choice because it walks you through the required steps.
While you are configuring Atlas Device Sync, you must define the data access patterns and rules for your App. If you haven't already decided how you want to configure your data model and access Device Sync, see:
At a minimum, the schema must define
_id and the field that you intend to
use as your partition key. A partition key field may be a
For more details on how to define a schema, see Enforce a Schema.
Enabling Flexible Sync in Your App Services Application requires a non-sharded MongoDB Atlas cluster running MongoDB 5.0 or greater