@@ -40,7 +40,6 @@ MongoDB Clusters
40
40
"config": {
41
41
"clusterName": "<Atlas Cluster Name>",
42
42
"readPreference": "<Read Preference>",
43
- "sync": { <Sync Configuration> },
44
43
"wireProtocolEnabled": <Boolean>
45
44
}
46
45
}
@@ -75,103 +74,11 @@ MongoDB Clusters
75
74
76
75
.. include:: /mongodb/tables/read-preference-modes.rst
77
76
78
- * - | ``config.sync``
79
- | Document
80
- - A configuration document that determines if a cluster is :doc:`synced
81
- </sync>` and, if it is, defines the rules for sync operations on the
82
- cluster.
83
-
84
- For detailed information on sync configuration documents, see
85
- :ref:`Synced Cluster Configuration <config-synced-cluster>`.
86
-
87
77
* - | ``config.wireProtocolEnabled``
88
78
| Boolean
89
79
- If ``true``, clients may :ref:`connect to the app over the MongoDB Wire
90
80
Protocol <wire-protocol-connect>`.
91
81
92
- .. _config-synced-cluster:
93
-
94
- Synced Cluster Configuration
95
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
96
-
97
- The ``config.sync`` field of ``config.json`` determines if a cluster is
98
- :doc:`synced </sync>` and, if it is, defines the rules for sync operations on
99
- the cluster.
100
-
101
- .. code-block:: json
102
- :caption: config.json
103
-
104
- {
105
- ...,
106
- "config": {
107
- ...,
108
- "sync": {
109
- "state": <Boolean>,
110
- "development_mode_enabled": <Boolean>,
111
- "database_name": "<Developer Mode Database Name>",
112
- "partition": {
113
- "key": "<Partition Key Field Name>",
114
- "type": "<Partition Key Value Type>",
115
- "permissions": {
116
- "read": <JSON Expression>,
117
- "write": <JSON Expression>
118
- }
119
- }
120
- }
121
- }
122
- }
123
-
124
- .. list-table::
125
- :header-rows: 1
126
- :widths: 10 30
127
-
128
- * - Field
129
- - Description
130
-
131
- * - | ``sync.state``
132
- | Boolean
133
- - If ``true``, :doc:`Sync </sync>` is enabled for the cluster, which means
134
- that client applications can sync data in the cluster with Realm Database
135
- and that :ref:`non-sync collection rules <mongodb-service-rules>` do not
136
- apply.
137
-
138
- * - | ``sync.development_mode_enabled``
139
- | Boolean
140
- - If ``true``, :term:`development mode` is enabled for the cluster. While
141
- enabled, Realm automatically stores synced objects in a specific database
142
- within the cluster and mirrors objects types in that database's
143
- collection schemas.
144
-
145
- .. important::
146
-
147
- Realm does not enforce rules when development mode is enabled.
148
-
149
- * - | ``sync.database_name``
150
- | String
151
- - The name of the database in the synced cluster where Realm should store
152
- synced objects.
153
-
154
- When :term:`development mode` is enabled, Realm stores synced objects in
155
- this database. Each object type maps to its own collection in the
156
- database with a schema that matches the synced objects.
157
-
158
- * - | ``sync.partition.key``
159
- | String
160
- - The name of the field that :ref:`partitions <partitioning>` data into
161
- client Realms.
162
-
163
- * - | ``sync.partition.type``
164
- | String
165
- - The type of the partition key field value.
166
-
167
- * - | ``sync.partition.permissions``
168
- | Document
169
- - A document that defines the ``read`` and ``write`` permissions for the
170
- synced cluster. Permissions are defined with :ref:`rule expressions
171
- <expressions>` that Realm evaluates per-user, per-partition. The
172
- expressions have access to the :json-expansion:`%%user` and
173
- :json-expansion:`%%partition` expansions.
174
-
175
82
.. _config-datalake:
176
83
177
84
MongoDB Data Lakes
@@ -211,7 +118,6 @@ MongoDB Data Lakes
211
118
| String
212
119
- Required. The name of the data lake in Atlas.
213
120
214
-
215
121
Databases & Collections
216
122
-----------------------
217
123
0 commit comments