Merge pull request #3173 from patvong/patvong/no-limit-to-relationnal-fields

Fetching the relational fields were incorrectly bounded to a maximum of 100 items.
This commit is contained in:
Rijk van Zanten
2020-11-27 18:58:07 -05:00
committed by GitHub

View File

@@ -93,7 +93,7 @@ export default async function runAST(
// all nested items for all parent items at once. Because of this, we can't limit that query
// to the "standard" item limit. Instead of _n_ nested items per parent item, it would mean
// that there's _n_ items, which are then divided on the parent items. (no good)
if (nestedNode.type === 'o2m' && typeof nestedNode.query.limit === 'number') {
if (nestedNode.type === 'o2m') {
tempLimit = nestedNode.query.limit;
nestedNode.query.limit = -1;
}