@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contember/engine-content-api",
3
- "version": "1.0.2",
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.2",
14
- "@contember/dic": "^1.0.2",
15
- "@contember/engine-common": "^1.0.2",
16
- "@contember/graphql-utils": "^1.0.2",
17
- "@contember/schema": "^1.0.2",
18
- "@contember/schema-utils": "^1.0.2",
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.2",
24
- "@contember/engine-api-tester": "^1.0.2",
25
- "@contember/schema-definition": "^1.0.2",
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 = `${sourceAlias}_x_${targetAlias}`
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 = `${sourceAlias}_x_${targetAlias}`
101
+ const joiningAlias = this.path.back().for('x_' + this.path.getAlias()).getAlias()
102
102
  return [
103
103
  {
104
104
  tableName: targetRelation.joiningTable.tableName,
@@ -104,4 +104,5 @@ test('Post by category ids (where many has many owning)', async () => {
104
104
  },
105
105
  })
106
106
  })
107
+
107
108
  test.run()