@contember/engine-content-api 1.3.0-alpha.1 → 1.3.0-alpha.13

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 (328) hide show
  1. package/dist/src/ExecutionContainer.d.ts +144 -0
  2. package/dist/src/ExecutionContainer.d.ts.map +1 -0
  3. package/dist/src/ExecutionContainer.js +85 -0
  4. package/dist/src/ExecutionContainer.js.map +1 -0
  5. package/dist/src/acl/PermissionFactory.d.ts +5 -4
  6. package/dist/src/acl/PermissionFactory.d.ts.map +1 -1
  7. package/dist/src/acl/PermissionFactory.js +10 -13
  8. package/dist/src/acl/PermissionFactory.js.map +1 -1
  9. package/dist/src/acl/index.d.ts +0 -1
  10. package/dist/src/acl/index.d.ts.map +1 -1
  11. package/dist/src/acl/index.js +0 -1
  12. package/dist/src/acl/index.js.map +1 -1
  13. package/dist/src/index.d.ts +2 -1
  14. package/dist/src/index.d.ts.map +1 -1
  15. package/dist/src/index.js +18 -2
  16. package/dist/src/index.js.map +1 -1
  17. package/dist/src/mapper/ColumnValue.d.ts +2 -2
  18. package/dist/src/mapper/ColumnValue.d.ts.map +1 -1
  19. package/dist/src/mapper/ErrorUtils.d.ts +3 -2
  20. package/dist/src/mapper/ErrorUtils.d.ts.map +1 -1
  21. package/dist/src/mapper/ErrorUtils.js +55 -35
  22. package/dist/src/mapper/ErrorUtils.js.map +1 -1
  23. package/dist/src/mapper/EventManager.d.ts +86 -0
  24. package/dist/src/mapper/EventManager.d.ts.map +1 -0
  25. package/dist/src/mapper/EventManager.js +118 -0
  26. package/dist/src/mapper/EventManager.js.map +1 -0
  27. package/dist/src/mapper/JunctionTableManager.d.ts +12 -11
  28. package/dist/src/mapper/JunctionTableManager.d.ts.map +1 -1
  29. package/dist/src/mapper/JunctionTableManager.js +20 -8
  30. package/dist/src/mapper/JunctionTableManager.js.map +1 -1
  31. package/dist/src/mapper/Mapper.d.ts +13 -6
  32. package/dist/src/mapper/Mapper.d.ts.map +1 -1
  33. package/dist/src/mapper/Mapper.js +41 -21
  34. package/dist/src/mapper/Mapper.js.map +1 -1
  35. package/dist/src/mapper/MapperFactory.d.ts +34 -0
  36. package/dist/src/mapper/MapperFactory.d.ts.map +1 -0
  37. package/dist/src/mapper/MapperFactory.js +41 -0
  38. package/dist/src/mapper/MapperFactory.js.map +1 -0
  39. package/dist/src/mapper/Result.d.ts +5 -3
  40. package/dist/src/mapper/Result.d.ts.map +1 -1
  41. package/dist/src/mapper/Result.js +4 -3
  42. package/dist/src/mapper/Result.js.map +1 -1
  43. package/dist/src/mapper/delete/DeleteExecutor.d.ts.map +1 -1
  44. package/dist/src/mapper/delete/DeleteExecutor.js +41 -1
  45. package/dist/src/mapper/delete/DeleteExecutor.js.map +1 -1
  46. package/dist/src/mapper/index.d.ts +3 -1
  47. package/dist/src/mapper/index.d.ts.map +1 -1
  48. package/dist/src/mapper/index.js +3 -1
  49. package/dist/src/mapper/index.js.map +1 -1
  50. package/dist/src/mapper/insert/InsertBuilder.d.ts +2 -2
  51. package/dist/src/mapper/insert/InsertBuilder.d.ts.map +1 -1
  52. package/dist/src/mapper/insert/InsertBuilder.js +8 -2
  53. package/dist/src/mapper/insert/InsertBuilder.js.map +1 -1
  54. package/dist/src/mapper/insert/Inserter.d.ts +3 -2
  55. package/dist/src/mapper/insert/Inserter.d.ts.map +1 -1
  56. package/dist/src/mapper/insert/Inserter.js +7 -6
  57. package/dist/src/mapper/insert/Inserter.js.map +1 -1
  58. package/dist/src/mapper/select/OrderByHelper.d.ts +1 -1
  59. package/dist/src/mapper/select/OrderByHelper.d.ts.map +1 -1
  60. package/dist/src/mapper/select/OrderByHelper.js +3 -1
  61. package/dist/src/mapper/select/OrderByHelper.js.map +1 -1
  62. package/dist/src/mapper/select/RelationFetcher.js +2 -2
  63. package/dist/src/mapper/select/RelationFetcher.js.map +1 -1
  64. package/dist/src/mapper/update/UpdateBuilder.d.ts +4 -4
  65. package/dist/src/mapper/update/UpdateBuilder.d.ts.map +1 -1
  66. package/dist/src/mapper/update/UpdateBuilder.js +26 -8
  67. package/dist/src/mapper/update/UpdateBuilder.js.map +1 -1
  68. package/dist/src/mapper/update/UpdateBuilderFactory.d.ts +1 -1
  69. package/dist/src/mapper/update/UpdateBuilderFactory.d.ts.map +1 -1
  70. package/dist/src/mapper/update/UpdateBuilderFactory.js +2 -2
  71. package/dist/src/mapper/update/UpdateBuilderFactory.js.map +1 -1
  72. package/dist/src/mapper/update/Updater.d.ts +3 -1
  73. package/dist/src/mapper/update/Updater.d.ts.map +1 -1
  74. package/dist/src/mapper/update/Updater.js +9 -12
  75. package/dist/src/mapper/update/Updater.js.map +1 -1
  76. package/dist/src/resolvers/GraphQlQueryAstFactory.d.ts +1 -3
  77. package/dist/src/resolvers/GraphQlQueryAstFactory.d.ts.map +1 -1
  78. package/dist/src/resolvers/GraphQlQueryAstFactory.js +1 -4
  79. package/dist/src/resolvers/GraphQlQueryAstFactory.js.map +1 -1
  80. package/dist/src/resolvers/MutationResolver.d.ts +3 -4
  81. package/dist/src/resolvers/MutationResolver.d.ts.map +1 -1
  82. package/dist/src/resolvers/MutationResolver.js +11 -12
  83. package/dist/src/resolvers/MutationResolver.js.map +1 -1
  84. package/dist/src/resolvers/ReadResolver.d.ts +1 -3
  85. package/dist/src/resolvers/ReadResolver.d.ts.map +1 -1
  86. package/dist/src/resolvers/ReadResolver.js +6 -10
  87. package/dist/src/resolvers/ReadResolver.js.map +1 -1
  88. package/dist/src/resolvers/ValidationResolver.d.ts +1 -3
  89. package/dist/src/resolvers/ValidationResolver.d.ts.map +1 -1
  90. package/dist/src/resolvers/ValidationResolver.js +3 -4
  91. package/dist/src/resolvers/ValidationResolver.js.map +1 -1
  92. package/dist/src/resolvers/index.d.ts +0 -1
  93. package/dist/src/resolvers/index.d.ts.map +1 -1
  94. package/dist/src/resolvers/index.js +0 -1
  95. package/dist/src/resolvers/index.js.map +1 -1
  96. package/dist/src/schema/CustomTypesProvider.d.ts.map +1 -1
  97. package/dist/src/schema/CustomTypesProvider.js +1 -23
  98. package/dist/src/schema/CustomTypesProvider.js.map +1 -1
  99. package/dist/src/schema/MutationProvider.js +4 -4
  100. package/dist/src/schema/MutationProvider.js.map +1 -1
  101. package/dist/src/schema/QueryProvider.js +3 -3
  102. package/dist/src/schema/QueryProvider.js.map +1 -1
  103. package/dist/src/tsconfig.tsbuildinfo +1 -1
  104. package/dist/src/types.d.ts +3 -4
  105. package/dist/src/types.d.ts.map +1 -1
  106. package/dist/src/utils/index.d.ts +0 -1
  107. package/dist/src/utils/index.d.ts.map +1 -1
  108. package/dist/src/utils/index.js +0 -1
  109. package/dist/src/utils/index.js.map +1 -1
  110. package/dist/src/utils/uniqueWhereFields.js +1 -1
  111. package/dist/src/utils/uniqueWhereFields.js.map +1 -1
  112. package/dist/tests/cases/bugs/bug-update-by-nested-unique.test.js +3 -5
  113. package/dist/tests/cases/bugs/bug-update-by-nested-unique.test.js.map +1 -1
  114. package/dist/tests/cases/integration/graphQlDb/insert/insertSequence.test.js +2 -2
  115. package/dist/tests/cases/integration/graphQlDb/insert/insertSequence.test.js.map +1 -1
  116. package/dist/tests/cases/integration/graphQlDb/update/bug-freeze-connect-missing-one.test.js +1 -1
  117. package/dist/tests/cases/integration/graphQlDb/update/bug-freeze-connect-missing-one.test.js.map +1 -1
  118. package/dist/tests/cases/integration/graphQlDb/update/deferedConstraints.test.js +45 -45
  119. package/dist/tests/cases/integration/graphQlDb/update/deferedConstraints.test.js.map +1 -1
  120. package/dist/tests/cases/integration/graphQlDb/update/failedDelete.test.js +5 -5
  121. package/dist/tests/cases/integration/graphQlDb/update/failedDelete.test.js.map +1 -1
  122. package/dist/tests/cases/integration/graphQlDb/update/invalidInput.test.js +2 -2
  123. package/dist/tests/cases/integration/graphQlDb/update/invalidInput.test.js.map +1 -1
  124. package/dist/tests/cases/integration/graphQlDb/update/nullChecksNotNull.test.js +7 -7
  125. package/dist/tests/cases/integration/graphQlDb/update/nullChecksNotNull.test.js.map +1 -1
  126. package/dist/tests/cases/integration/graphQlDb/update/nullChecksNullable.test.js +7 -7
  127. package/dist/tests/cases/integration/graphQlDb/update/nullChecksNullable.test.js.map +1 -1
  128. package/dist/tests/cases/integration/graphQlDb/update/uniqueConstraint.test.js +2 -2
  129. package/dist/tests/cases/integration/graphQlDb/update/uniqueConstraint.test.js.map +1 -1
  130. package/dist/tests/cases/integration/graphQlRequests/insert/oneHasMany/connect.test.js +3 -3
  131. package/dist/tests/cases/integration/graphQlRequests/insert/oneHasMany/connect.test.js.map +1 -1
  132. package/dist/tests/cases/integration/graphQlRequests/query/acl/isNullAcl.test.d.ts +2 -0
  133. package/dist/tests/cases/integration/graphQlRequests/query/acl/isNullAcl.test.d.ts.map +1 -0
  134. package/dist/tests/cases/integration/graphQlRequests/query/acl/isNullAcl.test.js +91 -0
  135. package/dist/tests/cases/integration/graphQlRequests/query/acl/isNullAcl.test.js.map +1 -0
  136. package/dist/tests/cases/integration/graphQlRequests/query/acl/rowPredicateSubset.test.js +1 -1
  137. package/dist/tests/cases/integration/graphQlRequests/query/acl/rowPredicateSubset.test.js.map +1 -1
  138. package/dist/tests/cases/integration/graphQlRequests/query/sorting/orderBy.test.d.ts +2 -0
  139. package/dist/tests/cases/integration/graphQlRequests/query/sorting/orderBy.test.d.ts.map +1 -0
  140. package/dist/tests/cases/integration/graphQlRequests/query/sorting/orderBy.test.js +67 -0
  141. package/dist/tests/cases/integration/graphQlRequests/query/sorting/orderBy.test.js.map +1 -0
  142. package/dist/tests/cases/integration/graphQlRequests/update/acl/aclUpdate.test.js +6 -18
  143. package/dist/tests/cases/integration/graphQlRequests/update/acl/aclUpdate.test.js.map +1 -1
  144. package/dist/tests/cases/integration/graphQlRequests/update/additionalFilter.test.js +3 -4
  145. package/dist/tests/cases/integration/graphQlRequests/update/additionalFilter.test.js.map +1 -1
  146. package/dist/tests/cases/integration/graphQlRequests/update/basic/columnUpdate.test.js +3 -8
  147. package/dist/tests/cases/integration/graphQlRequests/update/basic/columnUpdate.test.js.map +1 -1
  148. package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyInverse/update.test.js +3 -9
  149. package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyInverse/update.test.js.map +1 -1
  150. package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyInverse/upsert.test.js +3 -9
  151. package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyInverse/upsert.test.js.map +1 -1
  152. package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyOwning/update.test.js +3 -9
  153. package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyOwning/update.test.js.map +1 -1
  154. package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyOwning/upsert.test.js +3 -9
  155. package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyOwning/upsert.test.js.map +1 -1
  156. package/dist/tests/cases/integration/graphQlRequests/update/manyHasOne/connect.test.js +3 -10
  157. package/dist/tests/cases/integration/graphQlRequests/update/manyHasOne/connect.test.js.map +1 -1
  158. package/dist/tests/cases/integration/graphQlRequests/update/manyHasOne/create.test.js +3 -10
  159. package/dist/tests/cases/integration/graphQlRequests/update/manyHasOne/create.test.js.map +1 -1
  160. package/dist/tests/cases/integration/graphQlRequests/update/manyHasOne/disconnect.test.js +3 -9
  161. package/dist/tests/cases/integration/graphQlRequests/update/manyHasOne/disconnect.test.js.map +1 -1
  162. package/dist/tests/cases/integration/graphQlRequests/update/manyHasOne/update.test.js +3 -9
  163. package/dist/tests/cases/integration/graphQlRequests/update/manyHasOne/update.test.js.map +1 -1
  164. package/dist/tests/cases/integration/graphQlRequests/update/manyHasOne/upsert.test.js +6 -18
  165. package/dist/tests/cases/integration/graphQlRequests/update/manyHasOne/upsert.test.js.map +1 -1
  166. package/dist/tests/cases/integration/graphQlRequests/update/oneHasMany/connect.test.js +3 -11
  167. package/dist/tests/cases/integration/graphQlRequests/update/oneHasMany/connect.test.js.map +1 -1
  168. package/dist/tests/cases/integration/graphQlRequests/update/oneHasMany/disconnect.test.js +3 -8
  169. package/dist/tests/cases/integration/graphQlRequests/update/oneHasMany/disconnect.test.js.map +1 -1
  170. package/dist/tests/cases/integration/graphQlRequests/update/oneHasMany/update.test.js +3 -6
  171. package/dist/tests/cases/integration/graphQlRequests/update/oneHasMany/update.test.js.map +1 -1
  172. package/dist/tests/cases/integration/graphQlRequests/update/oneHasMany/upsert.test.js +3 -6
  173. package/dist/tests/cases/integration/graphQlRequests/update/oneHasMany/upsert.test.js.map +1 -1
  174. package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneInverse/connect.test.js +15 -50
  175. package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneInverse/connect.test.js.map +1 -1
  176. package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneInverse/create.test.js +3 -10
  177. package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneInverse/create.test.js.map +1 -1
  178. package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneInverse/disconnect.test.js +3 -10
  179. package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneInverse/disconnect.test.js.map +1 -1
  180. package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneInverse/update.test.js +3 -6
  181. package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneInverse/update.test.js.map +1 -1
  182. package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneInverse/upsert.test.js +3 -7
  183. package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneInverse/upsert.test.js.map +1 -1
  184. package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/connect.test.js +12 -32
  185. package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/connect.test.js.map +1 -1
  186. package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/connectOrCreate.test.js +3 -3
  187. package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/connectOrCreate.test.js.map +1 -1
  188. package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/create.test.js +6 -20
  189. package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/create.test.js.map +1 -1
  190. package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/disconnect.test.js +3 -10
  191. package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/disconnect.test.js.map +1 -1
  192. package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/update.test.js +3 -9
  193. package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/update.test.js.map +1 -1
  194. package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/upsert.test.js +6 -19
  195. package/dist/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/upsert.test.js.map +1 -1
  196. package/dist/tests/cases/integration/graphQlRequests/update/queryPortal.test.js +6 -8
  197. package/dist/tests/cases/integration/graphQlRequests/update/queryPortal.test.js.map +1 -1
  198. package/dist/tests/cases/integration/graphQlRequests/update/transaction.test.js +9 -24
  199. package/dist/tests/cases/integration/graphQlRequests/update/transaction.test.js.map +1 -1
  200. package/dist/tests/cases/integration/graphQlRequests/upsert/basicUpsert.test.js +3 -7
  201. package/dist/tests/cases/integration/graphQlRequests/upsert/basicUpsert.test.js.map +1 -1
  202. package/dist/tests/cases/unit/orderbyHelper.test.js +13 -2
  203. package/dist/tests/cases/unit/orderbyHelper.test.js.map +1 -1
  204. package/dist/tests/cases/unit/permissionMerger.test.js +8 -3
  205. package/dist/tests/cases/unit/permissionMerger.test.js.map +1 -1
  206. package/dist/tests/cases/unit/predicatesInjector.test.js +1 -1
  207. package/dist/tests/cases/unit/predicatesInjector.test.js.map +1 -1
  208. package/dist/tests/src/test.d.ts +1 -0
  209. package/dist/tests/src/test.d.ts.map +1 -1
  210. package/dist/tests/src/test.js +35 -6
  211. package/dist/tests/src/test.js.map +1 -1
  212. package/dist/tests/tsconfig.tsbuildinfo +1 -1
  213. package/package.json +16 -13
  214. package/src/ExecutionContainer.ts +208 -0
  215. package/src/acl/PermissionFactory.ts +15 -13
  216. package/src/acl/index.ts +0 -1
  217. package/src/index.ts +24 -1
  218. package/src/mapper/ColumnValue.ts +2 -2
  219. package/src/mapper/ErrorUtils.ts +66 -41
  220. package/src/mapper/EventManager.ts +158 -0
  221. package/src/mapper/JunctionTableManager.ts +50 -32
  222. package/src/mapper/Mapper.ts +48 -27
  223. package/src/mapper/MapperFactory.ts +69 -0
  224. package/src/mapper/Result.ts +5 -2
  225. package/src/mapper/delete/DeleteExecutor.ts +42 -1
  226. package/src/mapper/index.ts +3 -1
  227. package/src/mapper/insert/InsertBuilder.ts +12 -2
  228. package/src/mapper/insert/Inserter.ts +7 -7
  229. package/src/mapper/select/OrderByHelper.ts +2 -1
  230. package/src/mapper/select/RelationFetcher.ts +2 -2
  231. package/src/mapper/update/UpdateBuilder.ts +30 -7
  232. package/src/mapper/update/UpdateBuilderFactory.ts +2 -2
  233. package/src/mapper/update/Updater.ts +9 -13
  234. package/src/resolvers/GraphQlQueryAstFactory.ts +1 -2
  235. package/src/resolvers/MutationResolver.ts +15 -14
  236. package/src/resolvers/ReadResolver.ts +5 -9
  237. package/src/resolvers/ValidationResolver.ts +2 -4
  238. package/src/resolvers/index.ts +0 -1
  239. package/src/schema/CustomTypesProvider.ts +2 -27
  240. package/src/schema/MutationProvider.ts +4 -4
  241. package/src/schema/QueryProvider.ts +3 -3
  242. package/src/tsconfig.json +7 -21
  243. package/src/types.ts +3 -4
  244. package/src/utils/index.ts +0 -1
  245. package/src/utils/uniqueWhereFields.ts +1 -1
  246. package/tests/cases/bugs/bug-update-by-nested-unique.test.ts +3 -5
  247. package/tests/cases/integration/graphQlDb/insert/insertSequence.test.ts +2 -2
  248. package/tests/cases/integration/graphQlDb/update/bug-freeze-connect-missing-one.test.ts +1 -1
  249. package/tests/cases/integration/graphQlDb/update/deferedConstraints.test.ts +9 -9
  250. package/tests/cases/integration/graphQlDb/update/failedDelete.test.ts +3 -3
  251. package/tests/cases/integration/graphQlDb/update/invalidInput.test.ts +2 -2
  252. package/tests/cases/integration/graphQlDb/update/nullChecksNotNull.test.ts +7 -7
  253. package/tests/cases/integration/graphQlDb/update/nullChecksNullable.test.ts +7 -7
  254. package/tests/cases/integration/graphQlDb/update/uniqueConstraint.test.ts +2 -2
  255. package/tests/cases/integration/graphQlRequests/insert/oneHasMany/connect.test.ts +3 -3
  256. package/tests/cases/integration/graphQlRequests/query/acl/isNullAcl.test.ts +77 -0
  257. package/tests/cases/integration/graphQlRequests/query/acl/rowPredicateSubset.test.ts +1 -1
  258. package/tests/cases/integration/graphQlRequests/query/sorting/orderBy.test.ts +67 -0
  259. package/tests/cases/integration/graphQlRequests/update/acl/aclUpdate.test.ts +6 -18
  260. package/tests/cases/integration/graphQlRequests/update/additionalFilter.test.ts +3 -4
  261. package/tests/cases/integration/graphQlRequests/update/basic/columnUpdate.test.ts +3 -8
  262. package/tests/cases/integration/graphQlRequests/update/manyHasManyInverse/update.test.ts +3 -9
  263. package/tests/cases/integration/graphQlRequests/update/manyHasManyInverse/upsert.test.ts +3 -9
  264. package/tests/cases/integration/graphQlRequests/update/manyHasManyOwning/update.test.ts +3 -9
  265. package/tests/cases/integration/graphQlRequests/update/manyHasManyOwning/upsert.test.ts +3 -9
  266. package/tests/cases/integration/graphQlRequests/update/manyHasOne/connect.test.ts +3 -10
  267. package/tests/cases/integration/graphQlRequests/update/manyHasOne/create.test.ts +3 -10
  268. package/tests/cases/integration/graphQlRequests/update/manyHasOne/disconnect.test.ts +3 -9
  269. package/tests/cases/integration/graphQlRequests/update/manyHasOne/update.test.ts +3 -9
  270. package/tests/cases/integration/graphQlRequests/update/manyHasOne/upsert.test.ts +6 -18
  271. package/tests/cases/integration/graphQlRequests/update/oneHasMany/connect.test.ts +3 -11
  272. package/tests/cases/integration/graphQlRequests/update/oneHasMany/disconnect.test.ts +3 -8
  273. package/tests/cases/integration/graphQlRequests/update/oneHasMany/update.test.ts +3 -6
  274. package/tests/cases/integration/graphQlRequests/update/oneHasMany/upsert.test.ts +3 -6
  275. package/tests/cases/integration/graphQlRequests/update/oneHasOneInverse/connect.test.ts +15 -50
  276. package/tests/cases/integration/graphQlRequests/update/oneHasOneInverse/create.test.ts +3 -10
  277. package/tests/cases/integration/graphQlRequests/update/oneHasOneInverse/disconnect.test.ts +3 -10
  278. package/tests/cases/integration/graphQlRequests/update/oneHasOneInverse/update.test.ts +3 -6
  279. package/tests/cases/integration/graphQlRequests/update/oneHasOneInverse/upsert.test.ts +3 -7
  280. package/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/connect.test.ts +12 -32
  281. package/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/connectOrCreate.test.ts +3 -3
  282. package/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/create.test.ts +6 -20
  283. package/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/disconnect.test.ts +3 -10
  284. package/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/update.test.ts +3 -9
  285. package/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/upsert.test.ts +6 -19
  286. package/tests/cases/integration/graphQlRequests/update/queryPortal.test.ts +6 -8
  287. package/tests/cases/integration/graphQlRequests/update/transaction.test.ts +9 -24
  288. package/tests/cases/integration/graphQlRequests/upsert/basicUpsert.test.ts +3 -7
  289. package/tests/cases/unit/orderbyHelper.test.ts +15 -2
  290. package/tests/cases/unit/permissionMerger.test.ts +9 -4
  291. package/tests/cases/unit/predicatesInjector.test.ts +1 -1
  292. package/tests/src/test.ts +40 -16
  293. package/tests/tsconfig.json +3 -9
  294. package/dist/src/acl/PermissionsByIdentityFactory.d.ts +0 -12
  295. package/dist/src/acl/PermissionsByIdentityFactory.d.ts.map +0 -1
  296. package/dist/src/acl/PermissionsByIdentityFactory.js +0 -15
  297. package/dist/src/acl/PermissionsByIdentityFactory.js.map +0 -1
  298. package/dist/src/mapper/MapperContainer.d.ts +0 -18
  299. package/dist/src/mapper/MapperContainer.d.ts.map +0 -1
  300. package/dist/src/mapper/MapperContainer.js +0 -55
  301. package/dist/src/mapper/MapperContainer.js.map +0 -1
  302. package/dist/src/resolvers/ExecutionContainerFactory.d.ts +0 -24
  303. package/dist/src/resolvers/ExecutionContainerFactory.d.ts.map +0 -1
  304. package/dist/src/resolvers/ExecutionContainerFactory.js +0 -45
  305. package/dist/src/resolvers/ExecutionContainerFactory.js.map +0 -1
  306. package/dist/src/utils/arrays.d.ts +0 -3
  307. package/dist/src/utils/arrays.d.ts.map +0 -1
  308. package/dist/src/utils/arrays.js +0 -22
  309. package/dist/src/utils/arrays.js.map +0 -1
  310. package/dist/tests/cases/integration/graphQlSchema/schema-acl-allowed.gql +0 -420
  311. package/dist/tests/cases/integration/graphQlSchema/schema-acl-create-only.gql +0 -229
  312. package/dist/tests/cases/integration/graphQlSchema/schema-acl-predicate.gql +0 -112
  313. package/dist/tests/cases/integration/graphQlSchema/schema-acl-predicate2.gql +0 -112
  314. package/dist/tests/cases/integration/graphQlSchema/schema-acl-restricted-create.gql +0 -309
  315. package/dist/tests/cases/integration/graphQlSchema/schema-acl-restricted-delete.gql +0 -402
  316. package/dist/tests/cases/integration/graphQlSchema/schema-acl-restricted-update.gql +0 -338
  317. package/dist/tests/cases/integration/graphQlSchema/schema-acl.gql +0 -221
  318. package/dist/tests/cases/integration/graphQlSchema/schema-aliased-type.gql +0 -226
  319. package/dist/tests/cases/integration/graphQlSchema/schema-basic.gql +0 -841
  320. package/dist/tests/cases/integration/graphQlSchema/schema-bug-66.gql +0 -540
  321. package/dist/tests/cases/integration/graphQlSchema/schema-custom-primary.gql +0 -851
  322. package/dist/tests/cases/integration/graphQlSchema/schema-has-many-reduction.gql +0 -453
  323. package/dist/tests/cases/integration/graphQlSchema/schema-new-builder.gql +0 -912
  324. package/dist/tests/cases/integration/graphQlSchema/schema-view-entity.gql +0 -112
  325. package/src/acl/PermissionsByIdentityFactory.ts +0 -21
  326. package/src/mapper/MapperContainer.ts +0 -142
  327. package/src/resolvers/ExecutionContainerFactory.ts +0 -74
  328. package/src/utils/arrays.ts +0 -19
@@ -1,841 +0,0 @@
1
- type Query {
2
- getAuthor(by: AuthorUniqueWhere!, filter: AuthorWhere): Author
3
- listAuthor(filter: AuthorWhere, orderBy: [AuthorOrderBy!], offset: Int, limit: Int): [Author!]!
4
- paginateAuthor(filter: AuthorWhere, orderBy: [AuthorOrderBy!], skip: Int, first: Int): AuthorConnection!
5
- validateCreateAuthor(data: AuthorCreateInput!): _ValidationResult!
6
- validateUpdateAuthor(by: AuthorUniqueWhere!, data: AuthorUpdateInput!): _ValidationResult!
7
- getCategory(by: CategoryUniqueWhere!, filter: CategoryWhere): Category
8
- listCategory(filter: CategoryWhere, orderBy: [CategoryOrderBy!], offset: Int, limit: Int): [Category!]!
9
- paginateCategory(filter: CategoryWhere, orderBy: [CategoryOrderBy!], skip: Int, first: Int): CategoryConnection!
10
- validateCreateCategory(data: CategoryCreateInput!): _ValidationResult!
11
- validateUpdateCategory(by: CategoryUniqueWhere!, data: CategoryUpdateInput!): _ValidationResult!
12
- getPostLocale(by: PostLocaleUniqueWhere!, filter: PostLocaleWhere): PostLocale
13
- listPostLocale(filter: PostLocaleWhere, orderBy: [PostLocaleOrderBy!], offset: Int, limit: Int): [PostLocale!]!
14
- paginatePostLocale(filter: PostLocaleWhere, orderBy: [PostLocaleOrderBy!], skip: Int, first: Int): PostLocaleConnection!
15
- validateCreatePostLocale(data: PostLocaleCreateInput!): _ValidationResult!
16
- validateUpdatePostLocale(by: PostLocaleUniqueWhere!, data: PostLocaleUpdateInput!): _ValidationResult!
17
- getPost(by: PostUniqueWhere!, filter: PostWhere): Post
18
- listPost(filter: PostWhere, orderBy: [PostOrderBy!], offset: Int, limit: Int): [Post!]!
19
- paginatePost(filter: PostWhere, orderBy: [PostOrderBy!], skip: Int, first: Int): PostConnection!
20
- validateCreatePost(data: PostCreateInput!): _ValidationResult!
21
- validateUpdatePost(by: PostUniqueWhere!, data: PostUpdateInput!): _ValidationResult!
22
- transaction: QueryTransaction
23
- _info: Info
24
- }
25
-
26
- type Author {
27
- _meta: AuthorMeta
28
- id: UUID!
29
- name: String
30
- posts(filter: PostWhere, orderBy: [PostOrderBy!], offset: Int, limit: Int): [Post!]!
31
- postsByLocales(by: AuthorPostsByLocalesUniqueWhere!, filter: PostWhere): Post
32
- paginatePosts(filter: PostWhere, orderBy: [PostOrderBy!], skip: Int, first: Int): PostConnection!
33
- }
34
-
35
- type AuthorMeta {
36
- id: FieldMeta
37
- name: FieldMeta
38
- posts: FieldMeta
39
- }
40
-
41
- type FieldMeta {
42
- readable: Boolean
43
- updatable: Boolean
44
- }
45
-
46
- scalar UUID
47
-
48
- type Post {
49
- _meta: PostMeta
50
- author(filter: AuthorWhere): Author
51
- id: UUID!
52
- publishedAt: DateTime
53
- locales(filter: PostLocaleWhere, orderBy: [PostLocaleOrderBy!], offset: Int, limit: Int): [PostLocale!]!
54
- categories(filter: CategoryWhere, orderBy: [CategoryOrderBy!], offset: Int, limit: Int): [Category!]!
55
- paginateLocales(filter: PostLocaleWhere, orderBy: [PostLocaleOrderBy!], skip: Int, first: Int): PostLocaleConnection!
56
- paginateCategories(filter: CategoryWhere, orderBy: [CategoryOrderBy!], skip: Int, first: Int): CategoryConnection!
57
- }
58
-
59
- type PostMeta {
60
- author: FieldMeta
61
- id: FieldMeta
62
- publishedAt: FieldMeta
63
- locales: FieldMeta
64
- categories: FieldMeta
65
- }
66
-
67
- input AuthorWhere {
68
- id: UUIDCondition
69
- name: StringCondition
70
- posts: PostWhere
71
- and: [AuthorWhere]
72
- or: [AuthorWhere]
73
- not: AuthorWhere
74
- }
75
-
76
- input UUIDCondition {
77
- and: [UUIDCondition!]
78
- or: [UUIDCondition!]
79
- not: UUIDCondition
80
- null: Boolean
81
- isNull: Boolean
82
- eq: UUID
83
- notEq: UUID
84
- in: [UUID!]
85
- notIn: [UUID!]
86
- lt: UUID
87
- lte: UUID
88
- gt: UUID
89
- gte: UUID
90
- }
91
-
92
- input StringCondition {
93
- and: [StringCondition!]
94
- or: [StringCondition!]
95
- not: StringCondition
96
- null: Boolean
97
- isNull: Boolean
98
- eq: String
99
- notEq: String
100
- in: [String!]
101
- notIn: [String!]
102
- lt: String
103
- lte: String
104
- gt: String
105
- gte: String
106
- contains: String
107
- startsWith: String
108
- endsWith: String
109
- containsCI: String
110
- startsWithCI: String
111
- endsWithCI: String
112
- }
113
-
114
- input PostWhere {
115
- author: AuthorWhere
116
- id: UUIDCondition
117
- publishedAt: DateTimeCondition
118
- locales: PostLocaleWhere
119
- categories: CategoryWhere
120
- and: [PostWhere]
121
- or: [PostWhere]
122
- not: PostWhere
123
- }
124
-
125
- input DateTimeCondition {
126
- and: [DateTimeCondition!]
127
- or: [DateTimeCondition!]
128
- not: DateTimeCondition
129
- null: Boolean
130
- isNull: Boolean
131
- eq: DateTime
132
- notEq: DateTime
133
- in: [DateTime!]
134
- notIn: [DateTime!]
135
- lt: DateTime
136
- lte: DateTime
137
- gt: DateTime
138
- gte: DateTime
139
- }
140
-
141
- scalar DateTime
142
-
143
- input PostLocaleWhere {
144
- id: UUIDCondition
145
- title: StringCondition
146
- Post: PostWhere
147
- and: [PostLocaleWhere]
148
- or: [PostLocaleWhere]
149
- not: PostLocaleWhere
150
- }
151
-
152
- input CategoryWhere {
153
- id: UUIDCondition
154
- name: StringCondition
155
- posts: PostWhere
156
- and: [CategoryWhere]
157
- or: [CategoryWhere]
158
- not: CategoryWhere
159
- }
160
-
161
- type PostLocale {
162
- _meta: PostLocaleMeta
163
- id: UUID!
164
- title: String
165
- Post(filter: PostWhere): Post
166
- }
167
-
168
- type PostLocaleMeta {
169
- id: FieldMeta
170
- title: FieldMeta
171
- Post: FieldMeta
172
- }
173
-
174
- input PostLocaleOrderBy {
175
- _random: Boolean
176
- _randomSeeded: Int
177
- id: OrderDirection
178
- title: OrderDirection
179
- Post: PostOrderBy
180
- }
181
-
182
- enum OrderDirection {
183
- asc
184
- desc
185
- ascNullsFirst
186
- descNullsLast
187
- }
188
-
189
- input PostOrderBy {
190
- _random: Boolean
191
- _randomSeeded: Int
192
- author: AuthorOrderBy
193
- id: OrderDirection
194
- publishedAt: OrderDirection
195
- }
196
-
197
- input AuthorOrderBy {
198
- _random: Boolean
199
- _randomSeeded: Int
200
- id: OrderDirection
201
- name: OrderDirection
202
- }
203
-
204
- type Category {
205
- _meta: CategoryMeta
206
- id: UUID!
207
- name: String
208
- posts(filter: PostWhere, orderBy: [PostOrderBy!], offset: Int, limit: Int): [Post!]!
209
- paginatePosts(filter: PostWhere, orderBy: [PostOrderBy!], skip: Int, first: Int): PostConnection!
210
- }
211
-
212
- type CategoryMeta {
213
- id: FieldMeta
214
- name: FieldMeta
215
- posts: FieldMeta
216
- }
217
-
218
- type PostConnection {
219
- pageInfo: PageInfo!
220
- edges: [PostEdge!]!
221
- }
222
-
223
- type PageInfo {
224
- totalCount: Int!
225
- }
226
-
227
- type PostEdge {
228
- node: Post!
229
- }
230
-
231
- input CategoryOrderBy {
232
- _random: Boolean
233
- _randomSeeded: Int
234
- id: OrderDirection
235
- name: OrderDirection
236
- }
237
-
238
- type PostLocaleConnection {
239
- pageInfo: PageInfo!
240
- edges: [PostLocaleEdge!]!
241
- }
242
-
243
- type PostLocaleEdge {
244
- node: PostLocale!
245
- }
246
-
247
- type CategoryConnection {
248
- pageInfo: PageInfo!
249
- edges: [CategoryEdge!]!
250
- }
251
-
252
- type CategoryEdge {
253
- node: Category!
254
- }
255
-
256
- input AuthorPostsByLocalesUniqueWhere {
257
- locales: PostLocaleUniqueWhere
258
- }
259
-
260
- input PostLocaleUniqueWhere {
261
- id: UUID
262
- }
263
-
264
- input AuthorUniqueWhere {
265
- id: UUID
266
- posts: PostUniqueWhere
267
- }
268
-
269
- input PostUniqueWhere {
270
- id: UUID
271
- locales: PostLocaleUniqueWhere
272
- }
273
-
274
- type AuthorConnection {
275
- pageInfo: PageInfo!
276
- edges: [AuthorEdge!]!
277
- }
278
-
279
- type AuthorEdge {
280
- node: Author!
281
- }
282
-
283
- type _ValidationResult {
284
- valid: Boolean!
285
- errors: [_ValidationError!]!
286
- }
287
-
288
- type _ValidationError {
289
- path: [_PathFragment!]!
290
- message: _ValidationMessage!
291
- }
292
-
293
- union _PathFragment = _FieldPathFragment | _IndexPathFragment
294
-
295
- type _FieldPathFragment {
296
- field: String!
297
- }
298
-
299
- type _IndexPathFragment {
300
- index: Int!
301
- alias: String
302
- }
303
-
304
- type _ValidationMessage {
305
- text: String!
306
- }
307
-
308
- input AuthorCreateInput {
309
- name: String
310
- posts: [AuthorCreatePostsEntityRelationInput!]
311
- _dummy_field_: Boolean
312
- }
313
-
314
- input AuthorCreatePostsEntityRelationInput {
315
- connect: PostUniqueWhere
316
- create: PostWithoutAuthorCreateInput
317
- connectOrCreate: AuthorConnectOrCreatePostsRelationInput
318
- alias: String
319
- }
320
-
321
- input PostWithoutAuthorCreateInput {
322
- publishedAt: DateTime
323
- locales: [PostCreateLocalesEntityRelationInput!]
324
- categories: [PostCreateCategoriesEntityRelationInput!]
325
- _dummy_field_: Boolean
326
- }
327
-
328
- input PostCreateLocalesEntityRelationInput {
329
- connect: PostLocaleUniqueWhere
330
- create: PostLocaleWithoutPostCreateInput
331
- connectOrCreate: PostConnectOrCreateLocalesRelationInput
332
- alias: String
333
- }
334
-
335
- input PostLocaleWithoutPostCreateInput {
336
- title: String
337
- _dummy_field_: Boolean
338
- }
339
-
340
- input PostConnectOrCreateLocalesRelationInput {
341
- connect: PostLocaleUniqueWhere
342
- create: PostLocaleWithoutPostCreateInput
343
- }
344
-
345
- input PostCreateCategoriesEntityRelationInput {
346
- connect: CategoryUniqueWhere
347
- create: CategoryWithoutPostsCreateInput
348
- connectOrCreate: PostConnectOrCreateCategoriesRelationInput
349
- alias: String
350
- }
351
-
352
- input CategoryUniqueWhere {
353
- id: UUID
354
- }
355
-
356
- input CategoryWithoutPostsCreateInput {
357
- name: String
358
- _dummy_field_: Boolean
359
- }
360
-
361
- input PostConnectOrCreateCategoriesRelationInput {
362
- connect: CategoryUniqueWhere
363
- create: CategoryWithoutPostsCreateInput
364
- }
365
-
366
- input AuthorConnectOrCreatePostsRelationInput {
367
- connect: PostUniqueWhere
368
- create: PostWithoutAuthorCreateInput
369
- }
370
-
371
- input AuthorUpdateInput {
372
- name: String
373
- posts: [AuthorUpdatePostsEntityRelationInput!]
374
- _dummy_field_: Boolean
375
- }
376
-
377
- input AuthorUpdatePostsEntityRelationInput {
378
- create: PostWithoutAuthorCreateInput
379
- update: AuthorUpdatePostsRelationInput
380
- upsert: AuthorUpsertPostsRelationInput
381
- connect: PostUniqueWhere
382
- disconnect: PostUniqueWhere
383
- delete: PostUniqueWhere
384
- alias: String
385
- }
386
-
387
- input AuthorUpdatePostsRelationInput {
388
- by: PostUniqueWhere
389
- data: PostWithoutAuthorUpdateInput
390
- }
391
-
392
- input PostWithoutAuthorUpdateInput {
393
- publishedAt: DateTime
394
- locales: [PostUpdateLocalesEntityRelationInput!]
395
- categories: [PostUpdateCategoriesEntityRelationInput!]
396
- _dummy_field_: Boolean
397
- }
398
-
399
- input PostUpdateLocalesEntityRelationInput {
400
- create: PostLocaleWithoutPostCreateInput
401
- update: PostUpdateLocalesRelationInput
402
- upsert: PostUpsertLocalesRelationInput
403
- connect: PostLocaleUniqueWhere
404
- disconnect: PostLocaleUniqueWhere
405
- delete: PostLocaleUniqueWhere
406
- alias: String
407
- }
408
-
409
- input PostUpdateLocalesRelationInput {
410
- by: PostLocaleUniqueWhere
411
- data: PostLocaleWithoutPostUpdateInput
412
- }
413
-
414
- input PostLocaleWithoutPostUpdateInput {
415
- title: String
416
- _dummy_field_: Boolean
417
- }
418
-
419
- input PostUpsertLocalesRelationInput {
420
- by: PostLocaleUniqueWhere
421
- update: PostLocaleWithoutPostUpdateInput
422
- create: PostLocaleWithoutPostCreateInput
423
- }
424
-
425
- input PostUpdateCategoriesEntityRelationInput {
426
- create: CategoryWithoutPostsCreateInput
427
- update: PostUpdateCategoriesRelationInput
428
- upsert: PostUpsertCategoriesRelationInput
429
- connect: CategoryUniqueWhere
430
- disconnect: CategoryUniqueWhere
431
- delete: CategoryUniqueWhere
432
- alias: String
433
- }
434
-
435
- input PostUpdateCategoriesRelationInput {
436
- by: CategoryUniqueWhere
437
- data: CategoryWithoutPostsUpdateInput
438
- }
439
-
440
- input CategoryWithoutPostsUpdateInput {
441
- name: String
442
- _dummy_field_: Boolean
443
- }
444
-
445
- input PostUpsertCategoriesRelationInput {
446
- by: CategoryUniqueWhere
447
- update: CategoryWithoutPostsUpdateInput
448
- create: CategoryWithoutPostsCreateInput
449
- }
450
-
451
- input AuthorUpsertPostsRelationInput {
452
- by: PostUniqueWhere
453
- update: PostWithoutAuthorUpdateInput
454
- create: PostWithoutAuthorCreateInput
455
- }
456
-
457
- input CategoryCreateInput {
458
- name: String
459
- posts: [CategoryCreatePostsEntityRelationInput!]
460
- _dummy_field_: Boolean
461
- }
462
-
463
- input CategoryCreatePostsEntityRelationInput {
464
- connect: PostUniqueWhere
465
- create: PostWithoutCategoriesCreateInput
466
- connectOrCreate: CategoryConnectOrCreatePostsRelationInput
467
- alias: String
468
- }
469
-
470
- input PostWithoutCategoriesCreateInput {
471
- author: PostCreateAuthorEntityRelationInput
472
- publishedAt: DateTime
473
- locales: [PostCreateLocalesEntityRelationInput!]
474
- _dummy_field_: Boolean
475
- }
476
-
477
- input PostCreateAuthorEntityRelationInput {
478
- connect: AuthorUniqueWhere
479
- create: AuthorWithoutPostsCreateInput
480
- connectOrCreate: PostConnectOrCreateAuthorRelationInput
481
- }
482
-
483
- input AuthorWithoutPostsCreateInput {
484
- name: String
485
- _dummy_field_: Boolean
486
- }
487
-
488
- input PostConnectOrCreateAuthorRelationInput {
489
- connect: AuthorUniqueWhere
490
- create: AuthorWithoutPostsCreateInput
491
- }
492
-
493
- input CategoryConnectOrCreatePostsRelationInput {
494
- connect: PostUniqueWhere
495
- create: PostWithoutCategoriesCreateInput
496
- }
497
-
498
- input CategoryUpdateInput {
499
- name: String
500
- posts: [CategoryUpdatePostsEntityRelationInput!]
501
- _dummy_field_: Boolean
502
- }
503
-
504
- input CategoryUpdatePostsEntityRelationInput {
505
- create: PostWithoutCategoriesCreateInput
506
- update: CategoryUpdatePostsRelationInput
507
- upsert: CategoryUpsertPostsRelationInput
508
- connect: PostUniqueWhere
509
- disconnect: PostUniqueWhere
510
- delete: PostUniqueWhere
511
- alias: String
512
- }
513
-
514
- input CategoryUpdatePostsRelationInput {
515
- by: PostUniqueWhere
516
- data: PostWithoutCategoriesUpdateInput
517
- }
518
-
519
- input PostWithoutCategoriesUpdateInput {
520
- author: PostUpdateAuthorEntityRelationInput
521
- publishedAt: DateTime
522
- locales: [PostUpdateLocalesEntityRelationInput!]
523
- _dummy_field_: Boolean
524
- }
525
-
526
- input PostUpdateAuthorEntityRelationInput {
527
- connect: AuthorUniqueWhere
528
- create: AuthorWithoutPostsCreateInput
529
- connectOrCreate: PostConnectOrCreateAuthorRelationInput
530
- update: AuthorWithoutPostsUpdateInput
531
- upsert: PostUpsertAuthorRelationInput
532
- disconnect: Boolean
533
- delete: Boolean
534
- }
535
-
536
- input AuthorWithoutPostsUpdateInput {
537
- name: String
538
- _dummy_field_: Boolean
539
- }
540
-
541
- input PostUpsertAuthorRelationInput {
542
- update: AuthorWithoutPostsUpdateInput
543
- create: AuthorWithoutPostsCreateInput
544
- }
545
-
546
- input CategoryUpsertPostsRelationInput {
547
- by: PostUniqueWhere
548
- update: PostWithoutCategoriesUpdateInput
549
- create: PostWithoutCategoriesCreateInput
550
- }
551
-
552
- input PostLocaleCreateInput {
553
- title: String
554
- Post: PostLocaleCreatePostEntityRelationInput
555
- _dummy_field_: Boolean
556
- }
557
-
558
- input PostLocaleCreatePostEntityRelationInput {
559
- connect: PostUniqueWhere
560
- create: PostWithoutLocalesCreateInput
561
- connectOrCreate: PostLocaleConnectOrCreatePostRelationInput
562
- }
563
-
564
- input PostWithoutLocalesCreateInput {
565
- author: PostCreateAuthorEntityRelationInput
566
- publishedAt: DateTime
567
- categories: [PostCreateCategoriesEntityRelationInput!]
568
- _dummy_field_: Boolean
569
- }
570
-
571
- input PostLocaleConnectOrCreatePostRelationInput {
572
- connect: PostUniqueWhere
573
- create: PostWithoutLocalesCreateInput
574
- }
575
-
576
- input PostLocaleUpdateInput {
577
- title: String
578
- Post: PostLocaleUpdatePostEntityRelationInput
579
- _dummy_field_: Boolean
580
- }
581
-
582
- input PostLocaleUpdatePostEntityRelationInput {
583
- connect: PostUniqueWhere
584
- create: PostWithoutLocalesCreateInput
585
- connectOrCreate: PostLocaleConnectOrCreatePostRelationInput
586
- update: PostWithoutLocalesUpdateInput
587
- upsert: PostLocaleUpsertPostRelationInput
588
- disconnect: Boolean
589
- delete: Boolean
590
- }
591
-
592
- input PostWithoutLocalesUpdateInput {
593
- author: PostUpdateAuthorEntityRelationInput
594
- publishedAt: DateTime
595
- categories: [PostUpdateCategoriesEntityRelationInput!]
596
- _dummy_field_: Boolean
597
- }
598
-
599
- input PostLocaleUpsertPostRelationInput {
600
- update: PostWithoutLocalesUpdateInput
601
- create: PostWithoutLocalesCreateInput
602
- }
603
-
604
- input PostCreateInput {
605
- author: PostCreateAuthorEntityRelationInput
606
- publishedAt: DateTime
607
- locales: [PostCreateLocalesEntityRelationInput!]
608
- categories: [PostCreateCategoriesEntityRelationInput!]
609
- _dummy_field_: Boolean
610
- }
611
-
612
- input PostUpdateInput {
613
- author: PostUpdateAuthorEntityRelationInput
614
- publishedAt: DateTime
615
- locales: [PostUpdateLocalesEntityRelationInput!]
616
- categories: [PostUpdateCategoriesEntityRelationInput!]
617
- _dummy_field_: Boolean
618
- }
619
-
620
- type QueryTransaction {
621
- getAuthor(by: AuthorUniqueWhere!, filter: AuthorWhere): Author
622
- listAuthor(filter: AuthorWhere, orderBy: [AuthorOrderBy!], offset: Int, limit: Int): [Author!]!
623
- paginateAuthor(filter: AuthorWhere, orderBy: [AuthorOrderBy!], skip: Int, first: Int): AuthorConnection!
624
- validateCreateAuthor(data: AuthorCreateInput!): _ValidationResult!
625
- validateUpdateAuthor(by: AuthorUniqueWhere!, data: AuthorUpdateInput!): _ValidationResult!
626
- getCategory(by: CategoryUniqueWhere!, filter: CategoryWhere): Category
627
- listCategory(filter: CategoryWhere, orderBy: [CategoryOrderBy!], offset: Int, limit: Int): [Category!]!
628
- paginateCategory(filter: CategoryWhere, orderBy: [CategoryOrderBy!], skip: Int, first: Int): CategoryConnection!
629
- validateCreateCategory(data: CategoryCreateInput!): _ValidationResult!
630
- validateUpdateCategory(by: CategoryUniqueWhere!, data: CategoryUpdateInput!): _ValidationResult!
631
- getPostLocale(by: PostLocaleUniqueWhere!, filter: PostLocaleWhere): PostLocale
632
- listPostLocale(filter: PostLocaleWhere, orderBy: [PostLocaleOrderBy!], offset: Int, limit: Int): [PostLocale!]!
633
- paginatePostLocale(filter: PostLocaleWhere, orderBy: [PostLocaleOrderBy!], skip: Int, first: Int): PostLocaleConnection!
634
- validateCreatePostLocale(data: PostLocaleCreateInput!): _ValidationResult!
635
- validateUpdatePostLocale(by: PostLocaleUniqueWhere!, data: PostLocaleUpdateInput!): _ValidationResult!
636
- getPost(by: PostUniqueWhere!, filter: PostWhere): Post
637
- listPost(filter: PostWhere, orderBy: [PostOrderBy!], offset: Int, limit: Int): [Post!]!
638
- paginatePost(filter: PostWhere, orderBy: [PostOrderBy!], skip: Int, first: Int): PostConnection!
639
- validateCreatePost(data: PostCreateInput!): _ValidationResult!
640
- validateUpdatePost(by: PostUniqueWhere!, data: PostUpdateInput!): _ValidationResult!
641
- }
642
-
643
- type Info {
644
- description: String
645
- }
646
-
647
- type Mutation {
648
- createAuthor(data: AuthorCreateInput!): AuthorCreateResult!
649
- deleteAuthor(by: AuthorUniqueWhere!, filter: AuthorWhere): AuthorDeleteResult!
650
- updateAuthor(by: AuthorUniqueWhere!, filter: AuthorWhere, data: AuthorUpdateInput!): AuthorUpdateResult!
651
- upsertAuthor(by: AuthorUniqueWhere!, filter: AuthorWhere, update: AuthorUpdateInput!, create: AuthorCreateInput!): AuthorUpsertResult!
652
- createCategory(data: CategoryCreateInput!): CategoryCreateResult!
653
- deleteCategory(by: CategoryUniqueWhere!, filter: CategoryWhere): CategoryDeleteResult!
654
- updateCategory(by: CategoryUniqueWhere!, filter: CategoryWhere, data: CategoryUpdateInput!): CategoryUpdateResult!
655
- upsertCategory(by: CategoryUniqueWhere!, filter: CategoryWhere, update: CategoryUpdateInput!, create: CategoryCreateInput!): CategoryUpsertResult!
656
- createPostLocale(data: PostLocaleCreateInput!): PostLocaleCreateResult!
657
- deletePostLocale(by: PostLocaleUniqueWhere!, filter: PostLocaleWhere): PostLocaleDeleteResult!
658
- updatePostLocale(by: PostLocaleUniqueWhere!, filter: PostLocaleWhere, data: PostLocaleUpdateInput!): PostLocaleUpdateResult!
659
- upsertPostLocale(by: PostLocaleUniqueWhere!, filter: PostLocaleWhere, update: PostLocaleUpdateInput!, create: PostLocaleCreateInput!): PostLocaleUpsertResult!
660
- createPost(data: PostCreateInput!): PostCreateResult!
661
- deletePost(by: PostUniqueWhere!, filter: PostWhere): PostDeleteResult!
662
- updatePost(by: PostUniqueWhere!, filter: PostWhere, data: PostUpdateInput!): PostUpdateResult!
663
- upsertPost(by: PostUniqueWhere!, filter: PostWhere, update: PostUpdateInput!, create: PostCreateInput!): PostUpsertResult!
664
- transaction(options: MutationTransactionOptions): MutationTransaction!
665
- query: Query!
666
- }
667
-
668
- type AuthorCreateResult implements MutationResult {
669
- ok: Boolean!
670
- errorMessage: String
671
- errors: [_MutationError!]!
672
- node: Author
673
- validation: _ValidationResult!
674
- }
675
-
676
- interface MutationResult {
677
- ok: Boolean!
678
- errorMessage: String
679
- errors: [_MutationError!]!
680
- }
681
-
682
- type _MutationError {
683
- path: [_PathFragment!]! @deprecated(reason: "Use `paths`.")
684
- paths: [[_PathFragment!]!]!
685
- type: _MutationErrorType!
686
- message: String
687
- }
688
-
689
- enum _MutationErrorType {
690
- NotNullConstraintViolation
691
- UniqueConstraintViolation
692
- ForeignKeyConstraintViolation
693
- NotFoundOrDenied
694
- NonUniqueWhereInput
695
- InvalidDataInput
696
- SqlError
697
- }
698
-
699
- type AuthorDeleteResult implements MutationResult {
700
- ok: Boolean!
701
- errorMessage: String
702
- errors: [_MutationError!]!
703
- node: Author
704
- }
705
-
706
- type AuthorUpdateResult implements MutationResult {
707
- ok: Boolean!
708
- errorMessage: String
709
- errors: [_MutationError!]!
710
- node: Author
711
- validation: _ValidationResult!
712
- }
713
-
714
- type AuthorUpsertResult implements MutationResult {
715
- ok: Boolean!
716
- errorMessage: String
717
- errors: [_MutationError!]!
718
- node: Author
719
- validation: _ValidationResult!
720
- }
721
-
722
- type CategoryCreateResult implements MutationResult {
723
- ok: Boolean!
724
- errorMessage: String
725
- errors: [_MutationError!]!
726
- node: Category
727
- validation: _ValidationResult!
728
- }
729
-
730
- type CategoryDeleteResult implements MutationResult {
731
- ok: Boolean!
732
- errorMessage: String
733
- errors: [_MutationError!]!
734
- node: Category
735
- }
736
-
737
- type CategoryUpdateResult implements MutationResult {
738
- ok: Boolean!
739
- errorMessage: String
740
- errors: [_MutationError!]!
741
- node: Category
742
- validation: _ValidationResult!
743
- }
744
-
745
- type CategoryUpsertResult implements MutationResult {
746
- ok: Boolean!
747
- errorMessage: String
748
- errors: [_MutationError!]!
749
- node: Category
750
- validation: _ValidationResult!
751
- }
752
-
753
- type PostLocaleCreateResult implements MutationResult {
754
- ok: Boolean!
755
- errorMessage: String
756
- errors: [_MutationError!]!
757
- node: PostLocale
758
- validation: _ValidationResult!
759
- }
760
-
761
- type PostLocaleDeleteResult implements MutationResult {
762
- ok: Boolean!
763
- errorMessage: String
764
- errors: [_MutationError!]!
765
- node: PostLocale
766
- }
767
-
768
- type PostLocaleUpdateResult implements MutationResult {
769
- ok: Boolean!
770
- errorMessage: String
771
- errors: [_MutationError!]!
772
- node: PostLocale
773
- validation: _ValidationResult!
774
- }
775
-
776
- type PostLocaleUpsertResult implements MutationResult {
777
- ok: Boolean!
778
- errorMessage: String
779
- errors: [_MutationError!]!
780
- node: PostLocale
781
- validation: _ValidationResult!
782
- }
783
-
784
- type PostCreateResult implements MutationResult {
785
- ok: Boolean!
786
- errorMessage: String
787
- errors: [_MutationError!]!
788
- node: Post
789
- validation: _ValidationResult!
790
- }
791
-
792
- type PostDeleteResult implements MutationResult {
793
- ok: Boolean!
794
- errorMessage: String
795
- errors: [_MutationError!]!
796
- node: Post
797
- }
798
-
799
- type PostUpdateResult implements MutationResult {
800
- ok: Boolean!
801
- errorMessage: String
802
- errors: [_MutationError!]!
803
- node: Post
804
- validation: _ValidationResult!
805
- }
806
-
807
- type PostUpsertResult implements MutationResult {
808
- ok: Boolean!
809
- errorMessage: String
810
- errors: [_MutationError!]!
811
- node: Post
812
- validation: _ValidationResult!
813
- }
814
-
815
- type MutationTransaction {
816
- ok: Boolean!
817
- errorMessage: String
818
- errors: [_MutationError!]!
819
- validation: _ValidationResult!
820
- createAuthor(data: AuthorCreateInput!): AuthorCreateResult!
821
- deleteAuthor(by: AuthorUniqueWhere!, filter: AuthorWhere): AuthorDeleteResult!
822
- updateAuthor(by: AuthorUniqueWhere!, filter: AuthorWhere, data: AuthorUpdateInput!): AuthorUpdateResult!
823
- upsertAuthor(by: AuthorUniqueWhere!, filter: AuthorWhere, update: AuthorUpdateInput!, create: AuthorCreateInput!): AuthorUpsertResult!
824
- createCategory(data: CategoryCreateInput!): CategoryCreateResult!
825
- deleteCategory(by: CategoryUniqueWhere!, filter: CategoryWhere): CategoryDeleteResult!
826
- updateCategory(by: CategoryUniqueWhere!, filter: CategoryWhere, data: CategoryUpdateInput!): CategoryUpdateResult!
827
- upsertCategory(by: CategoryUniqueWhere!, filter: CategoryWhere, update: CategoryUpdateInput!, create: CategoryCreateInput!): CategoryUpsertResult!
828
- createPostLocale(data: PostLocaleCreateInput!): PostLocaleCreateResult!
829
- deletePostLocale(by: PostLocaleUniqueWhere!, filter: PostLocaleWhere): PostLocaleDeleteResult!
830
- updatePostLocale(by: PostLocaleUniqueWhere!, filter: PostLocaleWhere, data: PostLocaleUpdateInput!): PostLocaleUpdateResult!
831
- upsertPostLocale(by: PostLocaleUniqueWhere!, filter: PostLocaleWhere, update: PostLocaleUpdateInput!, create: PostLocaleCreateInput!): PostLocaleUpsertResult!
832
- createPost(data: PostCreateInput!): PostCreateResult!
833
- deletePost(by: PostUniqueWhere!, filter: PostWhere): PostDeleteResult!
834
- updatePost(by: PostUniqueWhere!, filter: PostWhere, data: PostUpdateInput!): PostUpdateResult!
835
- upsertPost(by: PostUniqueWhere!, filter: PostWhere, update: PostUpdateInput!, create: PostCreateInput!): PostUpsertResult!
836
- query: Query
837
- }
838
-
839
- input MutationTransactionOptions {
840
- deferForeignKeyConstraints: Boolean
841
- }