Merge branch 'main' into chore/fix/remove-dep-from-helper-plugin

This commit is contained in:
Josh 2022-10-21 10:10:03 +01:00 committed by GitHub
commit ab535e87fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,7 +83,13 @@ const processPopulate = (populate, ctx) => {
continue;
}
// make sure id is present for future populate queries
// Make sure to query the join column value if needed,
// so that we can apply the populate later on
if (attribute.joinColumn) {
qb.addSelect(attribute.joinColumn.name);
}
// Make sure id is present for future populate queries
if (_.has('id', meta.attributes)) {
qb.addSelect('id');
}