Mongodb – Mongoose "or" operator not working as expected
I am attempting to combine two regex operators when querying my MongoDB, the second of which (id) being a number field, hence the weird conversions. Both of these work individually, and if I replace the $where regex with a more…