Details
-
Bug
-
Resolution: Duplicate
-
Minor - P4
-
None
-
None
-
None
-
ALL
Description
In the mongo shell, it is currently not possible to access a collection named 'stats' by using db.stats or db['stats'] as it conflicts with the function .stats(). This is not an issue in the Python or other drivers. This is not, as far as I can tell, documented anywhere.
Temporary workaround is to use db.getCollection('stats').
Potentially as another issue, db['stats'] should always use getCollection().