-
Type: Bug
-
Resolution: Done
-
Priority: Critical - P2
-
Affects Version/s: 2.3.1
-
Component/s: JavaScript, Shell
-
None
-
Fully Compatible
-
ALL
If you do
> db.runCommand function ( obj ){ if ( typeof( obj ) == "string" ){ var n = {}; n[obj] = 1; obj = n; } return this.getCollection( "$cmd" ).findOne( obj ); }
The output is not indented.
This worked with spidermonkey