Merge branch 'main' into many-to-any

This commit is contained in:
rijkvanzanten
2020-10-09 15:58:43 -04:00
3 changed files with 8 additions and 1 deletions

View File

@@ -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),