mirror of
https://github.com/directus/directus.git
synced 2026-04-03 03:00:39 -04:00
Merge branch 'main' into many-to-any
This commit is contained in:
@@ -131,6 +131,7 @@ export default async function getASTFromQuery(
|
||||
relation: relation,
|
||||
query: {},
|
||||
children: {},
|
||||
relatedKey: {},
|
||||
};
|
||||
|
||||
// for (const allowedCollection of allowedCollections) {
|
||||
@@ -144,6 +145,7 @@ export default async function getASTFromQuery(
|
||||
name: relatedCollection,
|
||||
fieldKey: relationalField,
|
||||
parentKey: await schemaInspector.primary(parentCollection),
|
||||
relatedKey: await schemaInspector.primary(relatedCollection),
|
||||
relation: relation,
|
||||
query: deep?.[relationalField] || {},
|
||||
children: await parseFields(relatedCollection, nestedFields),
|
||||
|
||||
Reference in New Issue
Block a user