-
Type: Bug
-
Resolution: Won't Fix
-
Priority: Trivial - P5
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
In the mongo console using $ in property names work, eg:
> var a = {}
> a
{}
> a.$ref = "test"
test
> a.$ref
test
However, in MongoDB when using this in the find method I need to quote the property name for things to work.
db.foo.find(
{"a.$ref":"test"})