-
Type:
Improvement
-
Resolution: Done
-
Priority:
Minor - P4
-
Affects Version/s: None
-
Component/s: Diagnostics
-
None
-
Major Change
-
QuInt A (10/12/15)
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Currently the return document is structured without the index keys:
> db.jstests_index_stats.aggregate([{$indexStats: {}}]).pretty() { "name" : "a_1", "ns" : "test.jstests_index_stats", "processName" : "mortar:27017", "usageStats" : { "operations" : NumberLong(5), "validSince" : ISODate("2015-09-21T14:11:56.095Z") } }
I think it would be easier for users to see the stats if the keys are included in the return document.