Skip to content

Commit e7a1823

Browse files
committed
Minor edits
1 parent 22f2028 commit e7a1823

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

installation/database-setup.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ For self-hosted MongoDB, or for creating custom roles on MongoDB Atlas, PowerSyn
377377
* On each collection being replicated: `find`.
378378
* On the `_powersync_checkpoints` collection: `createCollection`, `dropCollection`, `find`, `changeStream`, `insert`, `update`, and `remove`.
379379
* 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.
381381

382382

383383
### Post-Images
@@ -390,11 +390,11 @@ PowerSync supports three configuration options for post-images:
390390

391391
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.
392392

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.
394394

395395
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.
396396

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:
398398

399399
```js
400400
db.runCommand( {
@@ -403,7 +403,7 @@ db.runCommand( {
403403
} )
404404
```
405405

406-
* You can view which collections have the option enabled using:
406+
You can view which collections have the option enabled using:
407407

408408
```js
409409
db.getCollectionInfos().filter(c => c.options?.changeStreamPreAndPostImages?.enabled)

0 commit comments

Comments
 (0)