@punks/backend-entity-manager 0.0.125 → 0.0.127

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.js CHANGED
@@ -22026,6 +22026,11 @@ class QueryClauseBuilder {
22026
22026
  }
22027
22027
  }
22028
22028
 
22029
+ var TypeOrmQueryOperationType;
22030
+ (function (TypeOrmQueryOperationType) {
22031
+ TypeOrmQueryOperationType["Search"] = "search";
22032
+ TypeOrmQueryOperationType["Get"] = "get";
22033
+ })(TypeOrmQueryOperationType || (TypeOrmQueryOperationType = {}));
22029
22034
  class TypeOrmQueryBuilder extends QueryBuilderBase {
22030
22035
  constructor(services) {
22031
22036
  super();
@@ -22034,7 +22039,7 @@ class TypeOrmQueryBuilder extends QueryBuilderBase {
22034
22039
  }
22035
22040
  async get(id, context) {
22036
22041
  return await this.getRepository().get(id, {
22037
- relations: this.getRelationsToLoad(undefined, context),
22042
+ relations: this.getRelationsToLoad(undefined, context, TypeOrmQueryOperationType.Get),
22038
22043
  });
22039
22044
  }
22040
22045
  async exists(filters, context) {
@@ -22082,12 +22087,12 @@ class TypeOrmQueryBuilder extends QueryBuilderBase {
22082
22087
  ...(context ? this.buildContextFilter(context) : {}),
22083
22088
  ...this.buildWhereClause(request),
22084
22089
  },
22085
- relations: this.getRelationsToLoad(request, context),
22090
+ relations: this.getRelationsToLoad(request, context, TypeOrmQueryOperationType.Search),
22086
22091
  order: this.buildSortingClause(request),
22087
22092
  ...this.buildPagingParameters(request),
22088
22093
  });
22089
22094
  }
22090
- getRelationsToLoad(request, context) {
22095
+ getRelationsToLoad(request, context, operation) {
22091
22096
  return undefined;
22092
22097
  }
22093
22098
  buildPagingParameters(request) {