@punks/backend-entity-manager 0.0.125 → 0.0.126
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 +8 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/integrations/repository/typeorm/queryBuilder.d.ts +5 -1
- package/dist/esm/index.js +8 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/integrations/repository/typeorm/queryBuilder.d.ts +5 -1
- package/dist/index.d.ts +5 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -22026,6 +22026,11 @@ class QueryClauseBuilder {
|
|
|
22026
22026
|
}
|
|
22027
22027
|
}
|
|
22028
22028
|
|
|
22029
|
+
var QueryOperationType;
|
|
22030
|
+
(function (QueryOperationType) {
|
|
22031
|
+
QueryOperationType["Search"] = "search";
|
|
22032
|
+
QueryOperationType["Get"] = "get";
|
|
22033
|
+
})(QueryOperationType || (QueryOperationType = {}));
|
|
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, QueryOperationType.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, QueryOperationType.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) {
|