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
Store your query into a varibale and use that variable at your find query. It works..... :D