Skip to content

Commit 5b884aa

Browse files
Update content/integrate/redis-data-integration/data-pipelines/prepare-dbs/mongodb.md
Co-authored-by: andy-stark-redis <164213578+andy-stark-redis@users.noreply.github.com>
1 parent f914daf commit 5b884aa

File tree

1 file changed

+4
-2
lines changed
  • content/integrate/redis-data-integration/data-pipelines/prepare-dbs

1 file changed

+4
-2
lines changed

content/integrate/redis-data-integration/data-pipelines/prepare-dbs/mongodb.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,10 @@ db.createUser({
4747
user: "rdi_user",
4848
pwd: "rdi_password",
4949
roles: [
50-
{ role: "read", db: "your_database" }, // You can have multiple read roles. One per database.
51-
// { role: "readAnyDatabase", db: "admin" }, // Use this role if you don't want to give `read` role for each database.
50+
// You can have multiple read roles, one per database.
51+
{ role: "read", db: "your_database" },
52+
// Use the role below if you don't want to grant the `read` role for each database.
53+
// { role: "readAnyDatabase", db: "admin" },
5254
{ role: "clusterMonitor", db: "admin" }
5355
]
5456
});

0 commit comments

Comments
 (0)