[DOCS-3429] incorrect syntax Created: 19/May/14  Updated: 21/May/14  Resolved: 21/May/14

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: mongodb-2.6
Fix Version/s: v1.3.5

Type: Bug Priority: Major - P3
Reporter: Sherry Ger Assignee: Kay Kim (Inactive)
Resolution: Done Votes: 0
Labels: sprint-slipstream
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 9 years, 39 weeks, 1 day ago

 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 "}".



 Comments   
Comment by Githook User [ 21/May/14 ]

Author:

{u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}

Message: DOCS-3429: syntax on grantRolesToUser method
Branch: master
https://github.com/mongodb/docs/commit/5778b2edeb6fd6f9bd924228b11a6a171e8ea12b

Generated at Thu Feb 08 07:45:42 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.