diff --git a/src/helpers/dynamicQueryBuilder.ts b/src/helpers/dynamicQueryBuilder.ts index 437fd9c..ee6ce4c 100644 --- a/src/helpers/dynamicQueryBuilder.ts +++ b/src/helpers/dynamicQueryBuilder.ts @@ -100,7 +100,7 @@ export default abstract class DynamicQueryBuilder { if (queryObject.join) { for (const join of queryObject.join) { let subaffix = Math.random().toString(36).substring(2); - query.leftJoinAndSelect(`${alias}.${join.foreignColumn}`, join.table + "_" + subaffix); + query.leftJoin(`${alias}.${join.foreignColumn}`, join.table + "_" + subaffix); this.buildDynamicQuery(query, join, subaffix, depth + 1); }