@contember/engine-content-api 1.0.2 → 1.0.3
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/src/mapper/select/JoinVisitor.js +2 -2
- package/dist/src/mapper/select/JoinVisitor.js.map +1 -1
- package/dist/src/tsconfig.tsbuildinfo +1 -1
- package/dist/tests/cases/integration/graphQlRequests/query/filter/manyHasManyOwnerRelation.test.js.map +1 -1
- package/dist/tests/tsconfig.tsbuildinfo +1 -1
- package/package.json +10 -10
- package/src/mapper/select/JoinVisitor.ts +2 -2
- package/tests/cases/integration/graphQlRequests/query/filter/manyHasManyOwnerRelation.test.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contember/engine-content-api",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "dist/src/index.js",
|
|
6
6
|
"typings": "dist/src/index.d.ts",
|
|
@@ -10,19 +10,19 @@
|
|
|
10
10
|
"test": "uvu dist/tests/cases/ \\.js$"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@contember/database": "^1.0.
|
|
14
|
-
"@contember/dic": "^1.0.
|
|
15
|
-
"@contember/engine-common": "^1.0.
|
|
16
|
-
"@contember/graphql-utils": "^1.0.
|
|
17
|
-
"@contember/schema": "^1.0.
|
|
18
|
-
"@contember/schema-utils": "^1.0.
|
|
13
|
+
"@contember/database": "^1.0.3",
|
|
14
|
+
"@contember/dic": "^1.0.3",
|
|
15
|
+
"@contember/engine-common": "^1.0.3",
|
|
16
|
+
"@contember/graphql-utils": "^1.0.3",
|
|
17
|
+
"@contember/schema": "^1.0.3",
|
|
18
|
+
"@contember/schema-utils": "^1.0.3",
|
|
19
19
|
"@graphql-tools/schema": "^7.1.5",
|
|
20
20
|
"graphql-tag": "^2.12.5"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@contember/database-tester": "^1.0.
|
|
24
|
-
"@contember/engine-api-tester": "^1.0.
|
|
25
|
-
"@contember/schema-definition": "^1.0.
|
|
23
|
+
"@contember/database-tester": "^1.0.3",
|
|
24
|
+
"@contember/engine-api-tester": "^1.0.3",
|
|
25
|
+
"@contember/schema-definition": "^1.0.3",
|
|
26
26
|
"@graphql-codegen/cli": "^1.15.2",
|
|
27
27
|
"@graphql-codegen/typescript": "^1.15.2",
|
|
28
28
|
"@graphql-codegen/typescript-operations": "^1.15.2",
|
|
@@ -70,7 +70,7 @@ export class JoinVisitor implements Model.RelationByTypeVisitor<JoinDefinition[]
|
|
|
70
70
|
): JoinDefinition[] {
|
|
71
71
|
const sourceAlias = this.path.back().getAlias()
|
|
72
72
|
const targetAlias = this.path.getAlias()
|
|
73
|
-
const joiningAlias =
|
|
73
|
+
const joiningAlias = this.path.back().for('x_' + this.path.getAlias()).getAlias()
|
|
74
74
|
return [
|
|
75
75
|
{
|
|
76
76
|
tableName: relation.joiningTable.tableName,
|
|
@@ -98,7 +98,7 @@ export class JoinVisitor implements Model.RelationByTypeVisitor<JoinDefinition[]
|
|
|
98
98
|
): JoinDefinition[] {
|
|
99
99
|
const sourceAlias = this.path.back().getAlias()
|
|
100
100
|
const targetAlias = this.path.getAlias()
|
|
101
|
-
const joiningAlias =
|
|
101
|
+
const joiningAlias = this.path.back().for('x_' + this.path.getAlias()).getAlias()
|
|
102
102
|
return [
|
|
103
103
|
{
|
|
104
104
|
tableName: targetRelation.joiningTable.tableName,
|