You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: installation/database-setup.mdx
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -377,7 +377,7 @@ For self-hosted MongoDB, or for creating custom roles on MongoDB Atlas, PowerSyn
377
377
* On each collection being replicated: `find`.
378
378
* On the `_powersync_checkpoints` collection: `createCollection`, `dropCollection`, `find`, `changeStream`, `insert`, `update`, and `remove`.
379
379
* To allow PowerSync to automatically enable [`changeStreamPreAndPostImages`](#post-images) on
380
-
replicated collections, additionally add the `collMod` permission all replicated collections.
380
+
replicated collections, additionally add the `collMod` permission on all replicated collections.
381
381
382
382
383
383
### Post-Images
@@ -390,11 +390,11 @@ PowerSync supports three configuration options for post-images:
390
390
391
391
1.`post_images: off`: Uses `fullDocument: 'updateLookup'` for backwards compatibility. This was the default for older instances. However, this may lead to consistency issues, so we strongly recommend enabling post-images instead.
392
392
393
-
2.`post_images: auto_configure` (Default for new instances): Automatically enables the `changeStreamPreAndPostImages` option on collections as needed.
393
+
2.`post_images: auto_configure` (Default for new instances): Automatically enables the `changeStreamPreAndPostImages` option on collections as needed. Requires the permissions/privileges mentioned above.
394
394
395
395
3.`post_images: read_only`: Uses `fullDocument: 'required'` and requires `changeStreamPreAndPostImages: { enabled: true }` to be set on every collection referenced in Sync Rules. Replication will error if this is not configured. This option is ideal when permissions are restricted.
396
396
397
-
*To manually configure collections for `read_only` mode, run this on each collection:
397
+
To manually configure collections for `read_only` mode, run this on each collection:
398
398
399
399
```js
400
400
db.runCommand( {
@@ -403,7 +403,7 @@ db.runCommand( {
403
403
} )
404
404
```
405
405
406
-
*You can view which collections have the option enabled using:
406
+
You can view which collections have the option enabled using:
0 commit comments