-
Type: Task
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
We have a function called db.version
If you create a collection called version you cannot query it via shell using db.version.X as the version function overloads the reference to the collection.
Most prominent when working with config.version
Workaround is to use db.getCollection("version").X
- duplicates
-
SERVER-3879 Mongo allows for creation of collections named the same as functions, it's confusing
- Closed