When I query my database with a function passed in the \"$where\" clause in nodejs, it always return me all documents in the db.
For example, if I do
This is how it is supposed to be. The drivers don't translate the client code into the mongo function javascript code.