fix: ensures nested querying works when querying across collections

This commit is contained in:
Jarrod Flesch
2023-05-08 12:20:06 -04:00
parent 2c36468431
commit 09974fa686
4 changed files with 139 additions and 60 deletions

View File

@@ -502,7 +502,6 @@ export class ParamParser {
}
} else {
lastIncompletePath.complete = true;
lastIncompletePath.collectionSlug = matchedField.relationTo;
lastIncompletePath.path = currentPath;
const nestedPathToQuery = pathSegments.slice(nextSegmentIsLocale ? i + 2 : i + 1).join('.');