I have documents with number
[
{
_id: 1,
number: 10
},
{
_id: 2,
number: 11
},
{
_id: 3,
number: 12
},
]
And i am using mongo filter $gte and $lte it looks like this:
db.collection.aggregate([{$match: {number: {$gte: 10, $lte: 100}}]
And i want to know is there the way to add specific number to get as well?
For example i want all number from 10 to 100 and i want to get number 159, how can i do that without increate $lte
filter
I was trying to use $and
but that does not rly help