Details
-
Bug
-
Resolution: Done
-
Minor - P4
-
None
-
None
-
None
-
ALL
Description
Currently getting a collection from db.coll returns the same instance every time but calling db.getCollection("coll") will return a new instance every time. We should get these playing together.
these return the same instance
> var a = db.coll
|
> var b = db.coll
|
> a === b
|
true
|
these return new instances every time
> var a = db.getCollection('coll')
|
> var b = db.getCollection('coll')
|
> a === b
|
false
|