Mongodb $where query always true with nodejs

后端 未结 7 2130
隐瞒了意图╮
隐瞒了意图╮ 2021-01-12 11:01

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



        
7条回答
  •  梦毁少年i
    2021-01-12 11:18

    This is how it is supposed to be. The drivers don't translate the client code into the mongo function javascript code.

提交回复
热议问题