Hi there,
I have a publish that does the following
Artists.find({
$and: [{
$or: [{
visibility: Visibility.PUBLIC,
}, {
_id: { $in: artistIds },
}],
}, {
$or: [{
name: patternRegEx,
}, {
musicLabel: patternRegEx,
}],
}],
}, {
fields: OMITTED_FIELDS,
limit: 7,
sort: { name: 1 },
});
Everything works fine when I run the unit test except of the limit parameter. It does return all 10 instead of only 7 documents. What do I miss? Thanks for your help.