Merge pull request #2199 from payloadcms/fix/#2150-nth-level-querying
fix: #2150, can now query on N number of levels deep
This commit is contained in:
@@ -266,8 +266,10 @@ class ParamParser {
|
||||
|
||||
if (collectionPathsToSearch.length === 1) return { path, value: { $in } };
|
||||
|
||||
const nextSubPath = collectionPathsToSearch[i + 1].path;
|
||||
|
||||
return {
|
||||
value: { _id: { $in } },
|
||||
value: { [nextSubPath]: { $in } },
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user