-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 3.1.9
-
Component/s: Aggregation Framework, Diagnostics
-
None
-
Major Change
-
ALL
-
Currently, indexStats asserts if the db or collection don't exist. While this may be unlikely in practice, I can see two much more user friendly responses:
- return an empty result (i.e. 0 documents from the pipeline)
- create the collection on the fly and return the new id index