Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-3429

incorrect syntax

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • v1.3.5
    • mongodb-2.6
    • manual

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

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            sherry.ger@10gen.com Sherry Ger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              9 years, 39 weeks, 1 day ago