When using MongoDB’s $in clause with Aggregate, Does That have any max limit in the number of arguments?
for example
Model.aggregate(
[
{ $match :
{ '_Id' :
{
$in : ids
}
}
} ,
{ $group :
{ _id : '$roomId' ,
maxdate: { $max: "$date"},
}
},
{$sort: { maxdate: -1} },
{$skip: skip},
{$limit: limitNum }
]
In ids array, how many ids I can pass?
If there is any limit can I used an heshing technic in order to pass huge queries?