Details
-
Bug
-
Resolution: Done
-
Major - P3
-
mongodb-2.6
Description
In this page db.grantRolesToUser(), the example syntax is incorrect.
db.grantRolesToUser( "accountUser01",
|
[ "readWrite" , { role: "read", db: "stock"} ],
|
{ w: "majority" , wtimeout: 4000 }
|
} )
|
Please remove the last "}".