We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e092ff0 commit 2c4a1a9Copy full SHA for 2c4a1a9
source/reference/method/db.addUser.txt
@@ -4,7 +4,7 @@ db.addUser()
4
5
.. default-domain:: mongodb
6
7
-.. method:: db.addUser("username", "password"[, readOnly])
+.. method:: db.addUser("username", "password" [, readOnly] )
8
9
:param string username: Specifies a new username.
10
@@ -17,3 +17,9 @@ db.addUser()
17
username and password as arguments to the command. If you want to
18
restrict the user to have only read-only privileges, supply a true
19
third argument; however, this defaults to false.
20
+
21
+ For example:
22
23
+ .. code-block:: javascript
24
25
+ db.addUser("user1" , "pass" , { readOnly : true } )
0 commit comments