@contember/engine-content-api 1.3.4 → 1.3.5

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.
Files changed (29) hide show
  1. package/dist/src/introspection/IntrospectionSchemaDefinitionFactory.d.ts +3 -2
  2. package/dist/src/introspection/IntrospectionSchemaDefinitionFactory.d.ts.map +1 -1
  3. package/dist/src/introspection/IntrospectionSchemaDefinitionFactory.js +156 -10
  4. package/dist/src/introspection/IntrospectionSchemaDefinitionFactory.js.map +1 -1
  5. package/dist/src/mapper/select/RelationFetcher.d.ts.map +1 -1
  6. package/dist/src/mapper/select/RelationFetcher.js +8 -7
  7. package/dist/src/mapper/select/RelationFetcher.js.map +1 -1
  8. package/dist/src/schema/GraphQlSchemaBuilder.d.ts +10 -2
  9. package/dist/src/schema/GraphQlSchemaBuilder.d.ts.map +1 -1
  10. package/dist/src/schema/GraphQlSchemaBuilder.js +44 -36
  11. package/dist/src/schema/GraphQlSchemaBuilder.js.map +1 -1
  12. package/dist/src/schema/ResultSchemaTypeProvider.d.ts +4 -0
  13. package/dist/src/schema/ResultSchemaTypeProvider.d.ts.map +1 -1
  14. package/dist/src/schema/ResultSchemaTypeProvider.js +27 -23
  15. package/dist/src/schema/ResultSchemaTypeProvider.js.map +1 -1
  16. package/dist/src/tsconfig.tsbuildinfo +1 -1
  17. package/dist/tests/cases/integration/graphQlRequests/query/relations/manyHasManyOwning.test.js +44 -0
  18. package/dist/tests/cases/integration/graphQlRequests/query/relations/manyHasManyOwning.test.js.map +1 -1
  19. package/dist/tests/cases/integration/graphQlSchema/graphQlSchemaBuilder.test.js +20 -0
  20. package/dist/tests/cases/integration/graphQlSchema/graphQlSchemaBuilder.test.js.map +1 -1
  21. package/dist/tests/tsconfig.tsbuildinfo +1 -1
  22. package/package.json +11 -12
  23. package/src/introspection/IntrospectionSchemaDefinitionFactory.ts +190 -9
  24. package/src/mapper/select/RelationFetcher.ts +8 -4
  25. package/src/schema/GraphQlSchemaBuilder.ts +58 -39
  26. package/src/schema/ResultSchemaTypeProvider.ts +29 -27
  27. package/tests/cases/integration/graphQlRequests/query/relations/manyHasManyOwning.test.ts +45 -0
  28. package/tests/cases/integration/graphQlSchema/graphQlSchemaBuilder.test.ts +24 -0
  29. package/tests/cases/integration/graphQlSchema/schema-read-only.gql +116 -0
@@ -0,0 +1,116 @@
1
+ type Query {
2
+ getTest(by: TestUniqueWhere!, filter: TestWhere): Test
3
+ listTest(filter: TestWhere, orderBy: [TestOrderBy!], offset: Int, limit: Int): [Test!]!
4
+ paginateTest(filter: TestWhere, orderBy: [TestOrderBy!], skip: Int, first: Int): TestConnection!
5
+ transaction: QueryTransaction
6
+ _info: Info
7
+ }
8
+
9
+ type Test {
10
+ _meta: TestMeta
11
+ id: UUID!
12
+ a: String
13
+ b: String
14
+ }
15
+
16
+ type TestMeta {
17
+ id: FieldMeta
18
+ a: FieldMeta
19
+ b: FieldMeta
20
+ }
21
+
22
+ type FieldMeta {
23
+ readable: Boolean
24
+ updatable: Boolean
25
+ }
26
+
27
+ scalar UUID
28
+
29
+ input TestUniqueWhere {
30
+ id: UUID
31
+ }
32
+
33
+ input TestWhere {
34
+ id: UUIDCondition
35
+ a: StringCondition
36
+ b: StringCondition
37
+ and: [TestWhere]
38
+ or: [TestWhere]
39
+ not: TestWhere
40
+ }
41
+
42
+ input UUIDCondition {
43
+ and: [UUIDCondition!]
44
+ or: [UUIDCondition!]
45
+ not: UUIDCondition
46
+ null: Boolean
47
+ isNull: Boolean
48
+ eq: UUID
49
+ notEq: UUID
50
+ in: [UUID!]
51
+ notIn: [UUID!]
52
+ lt: UUID
53
+ lte: UUID
54
+ gt: UUID
55
+ gte: UUID
56
+ }
57
+
58
+ input StringCondition {
59
+ and: [StringCondition!]
60
+ or: [StringCondition!]
61
+ not: StringCondition
62
+ null: Boolean
63
+ isNull: Boolean
64
+ eq: String
65
+ notEq: String
66
+ in: [String!]
67
+ notIn: [String!]
68
+ lt: String
69
+ lte: String
70
+ gt: String
71
+ gte: String
72
+ contains: String
73
+ startsWith: String
74
+ endsWith: String
75
+ containsCI: String
76
+ startsWithCI: String
77
+ endsWithCI: String
78
+ }
79
+
80
+ input TestOrderBy {
81
+ _random: Boolean
82
+ _randomSeeded: Int
83
+ id: OrderDirection
84
+ a: OrderDirection
85
+ b: OrderDirection
86
+ }
87
+
88
+ enum OrderDirection {
89
+ asc
90
+ desc
91
+ ascNullsFirst
92
+ descNullsLast
93
+ }
94
+
95
+ type TestConnection {
96
+ pageInfo: PageInfo!
97
+ edges: [TestEdge!]!
98
+ }
99
+
100
+ type PageInfo {
101
+ totalCount: Int!
102
+ }
103
+
104
+ type TestEdge {
105
+ node: Test!
106
+ }
107
+
108
+ type QueryTransaction {
109
+ getTest(by: TestUniqueWhere!, filter: TestWhere): Test
110
+ listTest(filter: TestWhere, orderBy: [TestOrderBy!], offset: Int, limit: Int): [Test!]!
111
+ paginateTest(filter: TestWhere, orderBy: [TestOrderBy!], skip: Int, first: Int): TestConnection!
112
+ }
113
+
114
+ type Info {
115
+ description: String
116
+ }