mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Fix limit in nested a2o queries (#16435)
* Set the limit into the correct query for a2o * Revert -1 limit and set foreignIds size as limit
This commit is contained in:
@@ -306,7 +306,7 @@ function applyParentFilters(
|
||||
const foreignIds = uniq(keysPerCollection[relatedCollection]);
|
||||
|
||||
merge(nestedNode, {
|
||||
query: { [relatedCollection]: { filter: { [foreignField]: { _in: foreignIds } } } },
|
||||
query: { [relatedCollection]: { filter: { [foreignField]: { _in: foreignIds } }, limit: foreignIds.length } },
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user