@ptc-org/nestjs-query-typeorm 5.1.0-alpha.1 → 6.0.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ptc-org/nestjs-query-typeorm",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"description": "Typeorm adapter for @ptc-org/nestjs-query-core",
|
|
5
5
|
"author": "doug-martin <doug@dougamartin.com>",
|
|
6
6
|
"homepage": "https://github.com/tripss/nestjs-query#readme",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"lodash.omit": "^4.5.0",
|
|
25
25
|
"tslib": "^2.6.2",
|
|
26
26
|
"uuid": "^9.0.1",
|
|
27
|
-
"@ptc-org/nestjs-query-core": "
|
|
27
|
+
"@ptc-org/nestjs-query-core": "6.0.0",
|
|
28
28
|
"reflect-metadata": "0.2.1"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
@@ -64,7 +64,7 @@ class TypeOrmQueryService extends relation_query_service_1.RelationQueryService
|
|
|
64
64
|
if (opts?.withDeleted) {
|
|
65
65
|
qb.withDeleted();
|
|
66
66
|
}
|
|
67
|
-
// Check if we have any relation that could cause the same record to be returned twice, if not
|
|
67
|
+
// Check if we have any relation that could cause the same record to be returned twice, if not then we create
|
|
68
68
|
// our own count as TypeORM still decides to add "DISTINCT" to it, which makes it slow
|
|
69
69
|
if (qb.expressionMap.joinAttributes.some((join) => join.isMany)) {
|
|
70
70
|
// If we have relations than do what TypeORM does
|