Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions installation/database-setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,10 @@ read@<your_database>
```

To allow PowerSync to automatically enable [`changeStreamPreAndPostImages`](#post-images) on
replicated collections, instead use:
replicated collections, additionally add the `dbAdmin` permission:

```
readWrite@<your_database>._powersync_checkpoints
dbAdmin@<your_database>
```

Expand All @@ -369,7 +370,7 @@ readAnyDatabase@admin

### Permissions required - Self-hosted

For self-hosted MongoDB, PowerSync requires the `find` and `changeStream` permissions on the database being replicated.
For self-hosted MongoDB, PowerSync requires the `find`, `changeStream` and `listCollections` permissions on the database being replicated.

PowerSync also requires `createCollection`, `dropCollection`, `insert`, `update`, and `remove` permissions to the `_powersync_checkpoints` collection.

Expand Down
Loading