That kind of issue has nothing to do with Mongodb. He could even use RethinkDb.
Get informed: http://rethinkdb.com
r.table('users').filter(<here>).run(conn, callback);
of course if you use the chainable syntax
r.table('users').filter(r.row("age").eq(30)).run(conn, callback);
you can prevent it but that's not the point. It has nothing to do with Mongodb.