I can’t figure why would this query not working? can someone explain?
Pop is not greater than 1000000 and Pop is not less than 5000, should return all in between correct?
db.zips.find(
{
"$and": [
{
"pop": {
"$not": {
"$gt": 1000000
}
}
},
{
"pop": {
"$not": {
"$lt": 5000
}
}
}
]
}
).count()