-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: manual
-
Labels:
-
Environment:mongod 2.6.6
*Location*: http://docs.mongodb.org/manual/reference/command/updateRole/#dbcmd.updateRole
*User-Agent*: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.89 Safari/537.36
*Referrer*: http://docs.mongodb.org/manual/reference/command/
*Screen Resolution*: 1024 x 1280
*repo*: docs
*source*: reference/command/updateRole
mongod 2.6.6 *Location*: http://docs.mongodb.org/manual/reference/command/updateRole/#dbcmd.updateRole *User-Agent*: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.89 Safari/537.36 *Referrer*: http://docs.mongodb.org/manual/reference/command/ *Screen Resolution*: 1024 x 1280 *repo*: docs *source*: reference/command/updateRole
When I try this command:
db.runCommand({updateRole:
, ...
I get this error:
{ "ok" : 0, "errmsg" : "\"updateRole\" had the wrong type. Expected String, found Object", "code" : 14 }Reporter: Marcin Chady
E-mail: marcin@digitalscapes.ca