-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Shell
In general, it would be easier to use – and, importantly, to learn – the shell if all shell commands worked in a similar way, and could be used in the same way from a hand-typed JavaScript or a file-based JavaScript. In particular, all commands that retrieve some data should return that data as a well-formed BSON object. Since the shell already echoes return values to the shell, there should be no usability harm in doing things this way. I see the following culprits:
- db.printCollectionStats
- db.printReplicationInfo
- db.printShardingStatus
- db.printSlaveReplicationInfo
- is related to
-
DOCS-992 The documentation does not call out the mongo shell built-ins which print information instead of returning JSON objects
- Closed
- related to
-
SERVER-14882 Modify sh.status to include output from config.actionlog
- Closed