4 ms·
It's not JSON, but rather that MongoDB's query language sucks. I'm not entirely sure how to fix it - perhaps make it slightly more verbose and meaningful?
by davidlumley 14y ago
It's not JSON, but rather that MongoDB's query language sucks. I'm not entirely sure how to fix it - perhaps make it slightly more verbose and meaningful?
- pestaa 14y agoProbably there are better ways to express a query in JSON compared to how MongoDB does it, but I'd take a step back and ask whether a nested map is the best approach to think about it.
- cheald 14y agoI actually prefer Mongo's query language to SQL, because it makes sense to my programmer brain. It's basically "push operand, push values", which makes a ton of sense. It's just plain old Polish notation.