@contember/engine-content-api 2.2.0-alpha.18 → 2.2.0-alpha.19
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/development/index.cjs +3 -0
- package/dist/development/index.cjs.map +1 -1
- package/dist/development/index.js +4 -1
- package/dist/development/index.js.map +1 -1
- package/dist/development/src/ExecutionContainer.cjs +1 -0
- package/dist/development/src/ExecutionContainer.cjs.map +1 -1
- package/dist/development/src/ExecutionContainer.js +1 -0
- package/dist/development/src/ExecutionContainer.js.map +1 -1
- package/dist/development/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducerExecutionHandler.cjs +2 -1
- package/dist/development/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducerExecutionHandler.cjs.map +1 -1
- package/dist/development/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducerExecutionHandler.js +2 -1
- package/dist/development/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducerExecutionHandler.js.map +1 -1
- package/dist/development/src/extensions/hasManyToHasOneReducer/HasManyToHasOneRelationReducerVisitor.cjs +5 -1
- package/dist/development/src/extensions/hasManyToHasOneReducer/HasManyToHasOneRelationReducerVisitor.cjs.map +1 -1
- package/dist/development/src/extensions/hasManyToHasOneReducer/HasManyToHasOneRelationReducerVisitor.js +5 -1
- package/dist/development/src/extensions/hasManyToHasOneReducer/HasManyToHasOneRelationReducerVisitor.js.map +1 -1
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyExecutionHandler.cjs +2 -1
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyExecutionHandler.cjs.map +1 -1
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyExecutionHandler.js +2 -1
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyExecutionHandler.js.map +1 -1
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyFieldProviderVisitor.cjs +4 -1
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyFieldProviderVisitor.cjs.map +1 -1
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyFieldProviderVisitor.js +4 -1
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyFieldProviderVisitor.js.map +1 -1
- package/dist/development/src/input-validation/preValidation/UpdateInputPreValidationProcessor.cjs +24 -3
- package/dist/development/src/input-validation/preValidation/UpdateInputPreValidationProcessor.cjs.map +1 -1
- package/dist/development/src/input-validation/preValidation/UpdateInputPreValidationProcessor.js +24 -3
- package/dist/development/src/input-validation/preValidation/UpdateInputPreValidationProcessor.js.map +1 -1
- package/dist/development/src/inputProcessing/UpdateInputVisitor.cjs +52 -2
- package/dist/development/src/inputProcessing/UpdateInputVisitor.cjs.map +1 -1
- package/dist/development/src/inputProcessing/UpdateInputVisitor.js +52 -2
- package/dist/development/src/inputProcessing/UpdateInputVisitor.js.map +1 -1
- package/dist/development/src/mapper/ErrorUtils.cjs +10 -0
- package/dist/development/src/mapper/ErrorUtils.cjs.map +1 -1
- package/dist/development/src/mapper/ErrorUtils.js +10 -0
- package/dist/development/src/mapper/ErrorUtils.js.map +1 -1
- package/dist/development/src/mapper/Mapper.cjs +37 -1
- package/dist/development/src/mapper/Mapper.cjs.map +1 -1
- package/dist/development/src/mapper/Mapper.js +38 -2
- package/dist/development/src/mapper/Mapper.js.map +1 -1
- package/dist/development/src/mapper/MutationProcessorHelper.cjs +12 -0
- package/dist/development/src/mapper/MutationProcessorHelper.cjs.map +1 -1
- package/dist/development/src/mapper/MutationProcessorHelper.js +13 -1
- package/dist/development/src/mapper/MutationProcessorHelper.js.map +1 -1
- package/dist/development/src/mapper/Result.cjs +1 -0
- package/dist/development/src/mapper/Result.cjs.map +1 -1
- package/dist/development/src/mapper/Result.js +1 -0
- package/dist/development/src/mapper/Result.js.map +1 -1
- package/dist/development/src/mapper/delete/DeleteExecutor.cjs +1 -1
- package/dist/development/src/mapper/delete/DeleteExecutor.js +1 -1
- package/dist/development/src/mapper/select/handlers/MetaHandler.cjs +1 -1
- package/dist/development/src/mapper/select/handlers/MetaHandler.js +1 -1
- package/dist/development/src/mapper/select/optimizer/WhereOptimizer.cjs +2 -2
- package/dist/development/src/mapper/select/optimizer/WhereOptimizer.cjs.map +1 -1
- package/dist/development/src/mapper/select/optimizer/WhereOptimizer.js +1 -1
- package/dist/development/src/mapper/select/optimizer/WhereOptimizer.js.map +1 -1
- package/dist/development/src/mapper/select/optimizer/WhereReplacer.cjs +3 -3
- package/dist/development/src/mapper/select/optimizer/WhereReplacer.cjs.map +1 -1
- package/dist/development/src/mapper/select/optimizer/WhereReplacer.js +1 -1
- package/dist/development/src/mapper/select/optimizer/WhereReplacer.js.map +1 -1
- package/dist/development/src/mapper/update/SqlUpdateInputProcessor.cjs +6 -3
- package/dist/development/src/mapper/update/SqlUpdateInputProcessor.cjs.map +1 -1
- package/dist/development/src/mapper/update/SqlUpdateInputProcessor.js +7 -4
- package/dist/development/src/mapper/update/SqlUpdateInputProcessor.js.map +1 -1
- package/dist/development/src/mapper/update/Updater.cjs +1 -1
- package/dist/development/src/mapper/update/Updater.js +1 -1
- package/dist/development/src/mapper/update/relations/ManyHasManyUpdateInputProcessor.cjs +6 -0
- package/dist/development/src/mapper/update/relations/ManyHasManyUpdateInputProcessor.cjs.map +1 -1
- package/dist/development/src/mapper/update/relations/ManyHasManyUpdateInputProcessor.js +6 -0
- package/dist/development/src/mapper/update/relations/ManyHasManyUpdateInputProcessor.js.map +1 -1
- package/dist/development/src/mapper/update/relations/OneHasManyUpdateInputProcessor.cjs +6 -0
- package/dist/development/src/mapper/update/relations/OneHasManyUpdateInputProcessor.cjs.map +1 -1
- package/dist/development/src/mapper/update/relations/OneHasManyUpdateInputProcessor.js +6 -0
- package/dist/development/src/mapper/update/relations/OneHasManyUpdateInputProcessor.js.map +1 -1
- package/dist/development/src/mapper/update/relations/SetManyRelationHelper.cjs +123 -0
- package/dist/development/src/mapper/update/relations/SetManyRelationHelper.cjs.map +1 -0
- package/dist/development/src/mapper/update/relations/SetManyRelationHelper.js +123 -0
- package/dist/development/src/mapper/update/relations/SetManyRelationHelper.js.map +1 -0
- package/dist/development/src/resolvers/MutationResolver.cjs +4 -1
- package/dist/development/src/resolvers/MutationResolver.cjs.map +1 -1
- package/dist/development/src/resolvers/MutationResolver.js +4 -1
- package/dist/development/src/resolvers/MutationResolver.js.map +1 -1
- package/dist/development/src/resolvers/ReadHelpers.cjs +2 -1
- package/dist/development/src/resolvers/ReadHelpers.cjs.map +1 -1
- package/dist/development/src/resolvers/ReadHelpers.js +2 -1
- package/dist/development/src/resolvers/ReadHelpers.js.map +1 -1
- package/dist/development/src/schema/CustomTypesProvider.cjs +35 -14
- package/dist/development/src/schema/CustomTypesProvider.cjs.map +1 -1
- package/dist/development/src/schema/CustomTypesProvider.js +36 -15
- package/dist/development/src/schema/CustomTypesProvider.js.map +1 -1
- package/dist/development/src/schema/EntityTypeProvider.cjs +8 -5
- package/dist/development/src/schema/EntityTypeProvider.cjs.map +1 -1
- package/dist/development/src/schema/EntityTypeProvider.js +8 -5
- package/dist/development/src/schema/EntityTypeProvider.js.map +1 -1
- package/dist/development/src/schema/GraphQlSchemaBuilderFactory.cjs +1 -1
- package/dist/development/src/schema/GraphQlSchemaBuilderFactory.js +1 -1
- package/dist/development/src/schema/MutationProvider.cjs +4 -0
- package/dist/development/src/schema/MutationProvider.cjs.map +1 -1
- package/dist/development/src/schema/MutationProvider.js +4 -0
- package/dist/development/src/schema/MutationProvider.js.map +1 -1
- package/dist/development/src/schema/OrderByTypeProvider.cjs +8 -2
- package/dist/development/src/schema/OrderByTypeProvider.cjs.map +1 -1
- package/dist/development/src/schema/OrderByTypeProvider.js +9 -3
- package/dist/development/src/schema/OrderByTypeProvider.js.map +1 -1
- package/dist/development/src/schema/QueryProvider.cjs +3 -0
- package/dist/development/src/schema/QueryProvider.cjs.map +1 -1
- package/dist/development/src/schema/QueryProvider.js +3 -0
- package/dist/development/src/schema/QueryProvider.js.map +1 -1
- package/dist/development/src/schema/ValidationQueriesProvider.cjs +2 -0
- package/dist/development/src/schema/ValidationQueriesProvider.cjs.map +1 -1
- package/dist/development/src/schema/ValidationQueriesProvider.js +2 -0
- package/dist/development/src/schema/ValidationQueriesProvider.js.map +1 -1
- package/dist/development/src/schema/WhereTypeProvider.cjs +17 -5
- package/dist/development/src/schema/WhereTypeProvider.cjs.map +1 -1
- package/dist/development/src/schema/WhereTypeProvider.js +18 -6
- package/dist/development/src/schema/WhereTypeProvider.js.map +1 -1
- package/dist/development/src/schema/calendarDate.cjs +21 -0
- package/dist/development/src/schema/calendarDate.cjs.map +1 -0
- package/dist/development/src/schema/calendarDate.js +21 -0
- package/dist/development/src/schema/calendarDate.js.map +1 -0
- package/dist/development/src/schema/mutations/CreateEntityInputFieldVisitor.cjs +11 -3
- package/dist/development/src/schema/mutations/CreateEntityInputFieldVisitor.cjs.map +1 -1
- package/dist/development/src/schema/mutations/CreateEntityInputFieldVisitor.js +11 -3
- package/dist/development/src/schema/mutations/CreateEntityInputFieldVisitor.js.map +1 -1
- package/dist/development/src/schema/mutations/UpdateEntityInputFieldVisitor.cjs +11 -3
- package/dist/development/src/schema/mutations/UpdateEntityInputFieldVisitor.cjs.map +1 -1
- package/dist/development/src/schema/mutations/UpdateEntityInputFieldVisitor.js +11 -3
- package/dist/development/src/schema/mutations/UpdateEntityInputFieldVisitor.js.map +1 -1
- package/dist/development/src/schema/mutations/UpdateEntityRelationInputFieldVisitor.cjs +39 -2
- package/dist/development/src/schema/mutations/UpdateEntityRelationInputFieldVisitor.cjs.map +1 -1
- package/dist/development/src/schema/mutations/UpdateEntityRelationInputFieldVisitor.js +40 -3
- package/dist/development/src/schema/mutations/UpdateEntityRelationInputFieldVisitor.js.map +1 -1
- package/dist/development/src/schema/utils.cjs +10 -0
- package/dist/development/src/schema/utils.cjs.map +1 -1
- package/dist/development/src/schema/utils.js +11 -1
- package/dist/development/src/schema/utils.js.map +1 -1
- package/dist/production/index.cjs +3 -0
- package/dist/production/index.cjs.map +1 -1
- package/dist/production/index.js +4 -1
- package/dist/production/index.js.map +1 -1
- package/dist/production/src/ExecutionContainer.cjs +1 -0
- package/dist/production/src/ExecutionContainer.cjs.map +1 -1
- package/dist/production/src/ExecutionContainer.js +1 -0
- package/dist/production/src/ExecutionContainer.js.map +1 -1
- package/dist/production/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducerExecutionHandler.cjs +2 -1
- package/dist/production/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducerExecutionHandler.cjs.map +1 -1
- package/dist/production/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducerExecutionHandler.js +2 -1
- package/dist/production/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducerExecutionHandler.js.map +1 -1
- package/dist/production/src/extensions/hasManyToHasOneReducer/HasManyToHasOneRelationReducerVisitor.cjs +5 -1
- package/dist/production/src/extensions/hasManyToHasOneReducer/HasManyToHasOneRelationReducerVisitor.cjs.map +1 -1
- package/dist/production/src/extensions/hasManyToHasOneReducer/HasManyToHasOneRelationReducerVisitor.js +5 -1
- package/dist/production/src/extensions/hasManyToHasOneReducer/HasManyToHasOneRelationReducerVisitor.js.map +1 -1
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyExecutionHandler.cjs +2 -1
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyExecutionHandler.cjs.map +1 -1
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyExecutionHandler.js +2 -1
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyExecutionHandler.js.map +1 -1
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyFieldProviderVisitor.cjs +4 -1
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyFieldProviderVisitor.cjs.map +1 -1
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyFieldProviderVisitor.js +4 -1
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyFieldProviderVisitor.js.map +1 -1
- package/dist/production/src/input-validation/preValidation/UpdateInputPreValidationProcessor.cjs +24 -3
- package/dist/production/src/input-validation/preValidation/UpdateInputPreValidationProcessor.cjs.map +1 -1
- package/dist/production/src/input-validation/preValidation/UpdateInputPreValidationProcessor.js +24 -3
- package/dist/production/src/input-validation/preValidation/UpdateInputPreValidationProcessor.js.map +1 -1
- package/dist/production/src/inputProcessing/UpdateInputVisitor.cjs +52 -2
- package/dist/production/src/inputProcessing/UpdateInputVisitor.cjs.map +1 -1
- package/dist/production/src/inputProcessing/UpdateInputVisitor.js +52 -2
- package/dist/production/src/inputProcessing/UpdateInputVisitor.js.map +1 -1
- package/dist/production/src/mapper/ErrorUtils.cjs +10 -0
- package/dist/production/src/mapper/ErrorUtils.cjs.map +1 -1
- package/dist/production/src/mapper/ErrorUtils.js +10 -0
- package/dist/production/src/mapper/ErrorUtils.js.map +1 -1
- package/dist/production/src/mapper/Mapper.cjs +37 -1
- package/dist/production/src/mapper/Mapper.cjs.map +1 -1
- package/dist/production/src/mapper/Mapper.js +38 -2
- package/dist/production/src/mapper/Mapper.js.map +1 -1
- package/dist/production/src/mapper/MutationProcessorHelper.cjs +12 -0
- package/dist/production/src/mapper/MutationProcessorHelper.cjs.map +1 -1
- package/dist/production/src/mapper/MutationProcessorHelper.js +13 -1
- package/dist/production/src/mapper/MutationProcessorHelper.js.map +1 -1
- package/dist/production/src/mapper/Result.cjs +1 -0
- package/dist/production/src/mapper/Result.cjs.map +1 -1
- package/dist/production/src/mapper/Result.js +1 -0
- package/dist/production/src/mapper/Result.js.map +1 -1
- package/dist/production/src/mapper/delete/DeleteExecutor.cjs +1 -1
- package/dist/production/src/mapper/delete/DeleteExecutor.js +1 -1
- package/dist/production/src/mapper/select/handlers/MetaHandler.cjs +1 -1
- package/dist/production/src/mapper/select/handlers/MetaHandler.js +1 -1
- package/dist/production/src/mapper/select/optimizer/WhereOptimizer.cjs +2 -2
- package/dist/production/src/mapper/select/optimizer/WhereOptimizer.cjs.map +1 -1
- package/dist/production/src/mapper/select/optimizer/WhereOptimizer.js +1 -1
- package/dist/production/src/mapper/select/optimizer/WhereOptimizer.js.map +1 -1
- package/dist/production/src/mapper/select/optimizer/WhereReplacer.cjs +3 -3
- package/dist/production/src/mapper/select/optimizer/WhereReplacer.cjs.map +1 -1
- package/dist/production/src/mapper/select/optimizer/WhereReplacer.js +1 -1
- package/dist/production/src/mapper/select/optimizer/WhereReplacer.js.map +1 -1
- package/dist/production/src/mapper/update/SqlUpdateInputProcessor.cjs +6 -3
- package/dist/production/src/mapper/update/SqlUpdateInputProcessor.cjs.map +1 -1
- package/dist/production/src/mapper/update/SqlUpdateInputProcessor.js +7 -4
- package/dist/production/src/mapper/update/SqlUpdateInputProcessor.js.map +1 -1
- package/dist/production/src/mapper/update/Updater.cjs +1 -1
- package/dist/production/src/mapper/update/Updater.js +1 -1
- package/dist/production/src/mapper/update/relations/ManyHasManyUpdateInputProcessor.cjs +6 -0
- package/dist/production/src/mapper/update/relations/ManyHasManyUpdateInputProcessor.cjs.map +1 -1
- package/dist/production/src/mapper/update/relations/ManyHasManyUpdateInputProcessor.js +6 -0
- package/dist/production/src/mapper/update/relations/ManyHasManyUpdateInputProcessor.js.map +1 -1
- package/dist/production/src/mapper/update/relations/OneHasManyUpdateInputProcessor.cjs +6 -0
- package/dist/production/src/mapper/update/relations/OneHasManyUpdateInputProcessor.cjs.map +1 -1
- package/dist/production/src/mapper/update/relations/OneHasManyUpdateInputProcessor.js +6 -0
- package/dist/production/src/mapper/update/relations/OneHasManyUpdateInputProcessor.js.map +1 -1
- package/dist/production/src/mapper/update/relations/SetManyRelationHelper.cjs +123 -0
- package/dist/production/src/mapper/update/relations/SetManyRelationHelper.cjs.map +1 -0
- package/dist/production/src/mapper/update/relations/SetManyRelationHelper.js +123 -0
- package/dist/production/src/mapper/update/relations/SetManyRelationHelper.js.map +1 -0
- package/dist/production/src/resolvers/MutationResolver.cjs +4 -1
- package/dist/production/src/resolvers/MutationResolver.cjs.map +1 -1
- package/dist/production/src/resolvers/MutationResolver.js +4 -1
- package/dist/production/src/resolvers/MutationResolver.js.map +1 -1
- package/dist/production/src/resolvers/ReadHelpers.cjs +2 -1
- package/dist/production/src/resolvers/ReadHelpers.cjs.map +1 -1
- package/dist/production/src/resolvers/ReadHelpers.js +2 -1
- package/dist/production/src/resolvers/ReadHelpers.js.map +1 -1
- package/dist/production/src/schema/CustomTypesProvider.cjs +35 -14
- package/dist/production/src/schema/CustomTypesProvider.cjs.map +1 -1
- package/dist/production/src/schema/CustomTypesProvider.js +36 -15
- package/dist/production/src/schema/CustomTypesProvider.js.map +1 -1
- package/dist/production/src/schema/EntityTypeProvider.cjs +8 -5
- package/dist/production/src/schema/EntityTypeProvider.cjs.map +1 -1
- package/dist/production/src/schema/EntityTypeProvider.js +8 -5
- package/dist/production/src/schema/EntityTypeProvider.js.map +1 -1
- package/dist/production/src/schema/GraphQlSchemaBuilderFactory.cjs +1 -1
- package/dist/production/src/schema/GraphQlSchemaBuilderFactory.js +1 -1
- package/dist/production/src/schema/MutationProvider.cjs +4 -0
- package/dist/production/src/schema/MutationProvider.cjs.map +1 -1
- package/dist/production/src/schema/MutationProvider.js +4 -0
- package/dist/production/src/schema/MutationProvider.js.map +1 -1
- package/dist/production/src/schema/OrderByTypeProvider.cjs +8 -2
- package/dist/production/src/schema/OrderByTypeProvider.cjs.map +1 -1
- package/dist/production/src/schema/OrderByTypeProvider.js +9 -3
- package/dist/production/src/schema/OrderByTypeProvider.js.map +1 -1
- package/dist/production/src/schema/QueryProvider.cjs +3 -0
- package/dist/production/src/schema/QueryProvider.cjs.map +1 -1
- package/dist/production/src/schema/QueryProvider.js +3 -0
- package/dist/production/src/schema/QueryProvider.js.map +1 -1
- package/dist/production/src/schema/ValidationQueriesProvider.cjs +2 -0
- package/dist/production/src/schema/ValidationQueriesProvider.cjs.map +1 -1
- package/dist/production/src/schema/ValidationQueriesProvider.js +2 -0
- package/dist/production/src/schema/ValidationQueriesProvider.js.map +1 -1
- package/dist/production/src/schema/WhereTypeProvider.cjs +17 -5
- package/dist/production/src/schema/WhereTypeProvider.cjs.map +1 -1
- package/dist/production/src/schema/WhereTypeProvider.js +18 -6
- package/dist/production/src/schema/WhereTypeProvider.js.map +1 -1
- package/dist/production/src/schema/calendarDate.cjs +21 -0
- package/dist/production/src/schema/calendarDate.cjs.map +1 -0
- package/dist/production/src/schema/calendarDate.js +21 -0
- package/dist/production/src/schema/calendarDate.js.map +1 -0
- package/dist/production/src/schema/mutations/CreateEntityInputFieldVisitor.cjs +11 -3
- package/dist/production/src/schema/mutations/CreateEntityInputFieldVisitor.cjs.map +1 -1
- package/dist/production/src/schema/mutations/CreateEntityInputFieldVisitor.js +11 -3
- package/dist/production/src/schema/mutations/CreateEntityInputFieldVisitor.js.map +1 -1
- package/dist/production/src/schema/mutations/UpdateEntityInputFieldVisitor.cjs +11 -3
- package/dist/production/src/schema/mutations/UpdateEntityInputFieldVisitor.cjs.map +1 -1
- package/dist/production/src/schema/mutations/UpdateEntityInputFieldVisitor.js +11 -3
- package/dist/production/src/schema/mutations/UpdateEntityInputFieldVisitor.js.map +1 -1
- package/dist/production/src/schema/mutations/UpdateEntityRelationInputFieldVisitor.cjs +39 -2
- package/dist/production/src/schema/mutations/UpdateEntityRelationInputFieldVisitor.cjs.map +1 -1
- package/dist/production/src/schema/mutations/UpdateEntityRelationInputFieldVisitor.js +40 -3
- package/dist/production/src/schema/mutations/UpdateEntityRelationInputFieldVisitor.js.map +1 -1
- package/dist/production/src/schema/utils.cjs +10 -0
- package/dist/production/src/schema/utils.cjs.map +1 -1
- package/dist/production/src/schema/utils.js +11 -1
- package/dist/production/src/schema/utils.js.map +1 -1
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyInverse/set.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyInverse/set.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyOwning/set.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/manyHasManyOwning/set.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasMany/set.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/update/oneHasMany/set.test.d.ts.map +1 -0
- package/dist/tests/cases/unit/checkViolationError.test.d.ts +2 -0
- package/dist/tests/cases/unit/checkViolationError.test.d.ts.map +1 -0
- package/dist/tests/cases/unit/dateType.test.d.ts +2 -0
- package/dist/tests/cases/unit/dateType.test.d.ts.map +1 -0
- package/dist/tests/tsconfig.tsbuildinfo +1 -1
- package/dist/types/extensions/hasManyToHasOneReducer/HasManyToHasOneRelationReducerVisitor.d.ts.map +1 -1
- package/dist/types/extensions/paginatedHasMany/PaginatedHasManyFieldProviderVisitor.d.ts.map +1 -1
- package/dist/types/input-validation/preValidation/UpdateInputPreValidationProcessor.d.ts +6 -0
- package/dist/types/input-validation/preValidation/UpdateInputPreValidationProcessor.d.ts.map +1 -1
- package/dist/types/inputProcessing/UpdateInputProcessor.d.ts +7 -0
- package/dist/types/inputProcessing/UpdateInputProcessor.d.ts.map +1 -1
- package/dist/types/inputProcessing/UpdateInputVisitor.d.ts +2 -0
- package/dist/types/inputProcessing/UpdateInputVisitor.d.ts.map +1 -1
- package/dist/types/mapper/ErrorUtils.d.ts.map +1 -1
- package/dist/types/mapper/Mapper.d.ts +5 -0
- package/dist/types/mapper/Mapper.d.ts.map +1 -1
- package/dist/types/mapper/MutationProcessorHelper.d.ts +3 -0
- package/dist/types/mapper/MutationProcessorHelper.d.ts.map +1 -1
- package/dist/types/mapper/Result.d.ts +2 -1
- package/dist/types/mapper/Result.d.ts.map +1 -1
- package/dist/types/mapper/types.d.ts +8 -1
- package/dist/types/mapper/types.d.ts.map +1 -1
- package/dist/types/mapper/update/SqlUpdateInputProcessor.d.ts.map +1 -1
- package/dist/types/mapper/update/relations/ManyHasManyUpdateInputProcessor.d.ts +5 -0
- package/dist/types/mapper/update/relations/ManyHasManyUpdateInputProcessor.d.ts.map +1 -1
- package/dist/types/mapper/update/relations/OneHasManyUpdateInputProcessor.d.ts +5 -0
- package/dist/types/mapper/update/relations/OneHasManyUpdateInputProcessor.d.ts.map +1 -1
- package/dist/types/mapper/update/relations/SetManyRelationHelper.d.ts +67 -0
- package/dist/types/mapper/update/relations/SetManyRelationHelper.d.ts.map +1 -0
- package/dist/types/resolvers/MutationResolver.d.ts.map +1 -1
- package/dist/types/schema/CustomTypesProvider.d.ts.map +1 -1
- package/dist/types/schema/EntityTypeProvider.d.ts.map +1 -1
- package/dist/types/schema/MutationProvider.d.ts.map +1 -1
- package/dist/types/schema/OrderByTypeProvider.d.ts.map +1 -1
- package/dist/types/schema/QueryProvider.d.ts.map +1 -1
- package/dist/types/schema/ValidationQueriesProvider.d.ts.map +1 -1
- package/dist/types/schema/WhereTypeProvider.d.ts.map +1 -1
- package/dist/types/schema/calendarDate.d.ts +6 -0
- package/dist/types/schema/calendarDate.d.ts.map +1 -0
- package/dist/types/schema/index.d.ts +1 -0
- package/dist/types/schema/index.d.ts.map +1 -1
- package/dist/types/schema/mutations/CreateEntityInputFieldVisitor.d.ts.map +1 -1
- package/dist/types/schema/mutations/UpdateEntityInputFieldVisitor.d.ts +3 -0
- package/dist/types/schema/mutations/UpdateEntityInputFieldVisitor.d.ts.map +1 -1
- package/dist/types/schema/mutations/UpdateEntityRelationInputFieldVisitor.d.ts +1 -0
- package/dist/types/schema/mutations/UpdateEntityRelationInputFieldVisitor.d.ts.map +1 -1
- package/dist/types/schema/utils.d.ts +7 -0
- package/dist/types/schema/utils.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +10 -10
- package/src/extensions/hasManyToHasOneReducer/HasManyToHasOneRelationReducerVisitor.ts +3 -0
- package/src/extensions/paginatedHasMany/PaginatedHasManyFieldProviderVisitor.ts +9 -7
- package/src/input-validation/preValidation/UpdateInputPreValidationProcessor.ts +29 -0
- package/src/inputProcessing/UpdateInputProcessor.ts +6 -0
- package/src/inputProcessing/UpdateInputVisitor.ts +64 -2
- package/src/mapper/ErrorUtils.ts +11 -0
- package/src/mapper/Mapper.ts +61 -1
- package/src/mapper/MutationProcessorHelper.ts +14 -0
- package/src/mapper/Result.ts +1 -0
- package/src/mapper/select/optimizer/WhereOptimizer.ts +1 -1
- package/src/mapper/select/optimizer/WhereReplacer.ts +1 -1
- package/src/mapper/types.ts +16 -1
- package/src/mapper/update/SqlUpdateInputProcessor.ts +4 -1
- package/src/mapper/update/relations/ManyHasManyUpdateInputProcessor.ts +9 -0
- package/src/mapper/update/relations/OneHasManyUpdateInputProcessor.ts +9 -0
- package/src/mapper/update/relations/SetManyRelationHelper.ts +199 -0
- package/src/resolvers/MutationResolver.ts +2 -0
- package/src/schema/CustomTypesProvider.ts +40 -15
- package/src/schema/EntityTypeProvider.ts +8 -4
- package/src/schema/MutationProvider.ts +4 -0
- package/src/schema/OrderByTypeProvider.ts +9 -3
- package/src/schema/QueryProvider.ts +3 -0
- package/src/schema/ValidationQueriesProvider.ts +2 -0
- package/src/schema/WhereTypeProvider.ts +18 -6
- package/src/schema/calendarDate.ts +26 -0
- package/src/schema/index.ts +1 -0
- package/src/schema/mutations/CreateEntityInputFieldVisitor.ts +10 -2
- package/src/schema/mutations/UpdateEntityInputFieldVisitor.ts +10 -2
- package/src/schema/mutations/UpdateEntityRelationInputFieldVisitor.ts +66 -7
- package/src/schema/utils.ts +14 -0
- package/src/tsconfig.json +2 -1
- package/tests/cases/integration/graphQlRequests/update/manyHasManyInverse/set.test.ts +219 -0
- package/tests/cases/integration/graphQlRequests/update/manyHasManyOwning/set.test.ts +479 -0
- package/tests/cases/integration/graphQlRequests/update/oneHasMany/set.test.ts +948 -0
- package/tests/cases/integration/graphQlSchema/graphQlSchemaBuilder.test.ts +102 -1
- package/tests/cases/integration/graphQlSchema/schema-acl-allowed.gql +17 -0
- package/tests/cases/integration/graphQlSchema/schema-acl-create-only.gql +1 -0
- package/tests/cases/integration/graphQlSchema/schema-acl-restricted-create.gql +14 -0
- package/tests/cases/integration/graphQlSchema/schema-acl-restricted-delete.gql +11 -0
- package/tests/cases/integration/graphQlSchema/schema-acl-restricted-read.gql +254 -0
- package/tests/cases/integration/graphQlSchema/schema-acl-restricted-update.gql +1 -0
- package/tests/cases/integration/graphQlSchema/schema-acl.gql +1 -0
- package/tests/cases/integration/graphQlSchema/schema-aliased-type.gql +1 -0
- package/tests/cases/integration/graphQlSchema/schema-array.gql +1 -0
- package/tests/cases/integration/graphQlSchema/schema-basic.gql +50 -0
- package/tests/cases/integration/graphQlSchema/schema-bug-66.gql +17 -0
- package/tests/cases/integration/graphQlSchema/schema-column-types.gql +1 -0
- package/tests/cases/integration/graphQlSchema/schema-custom-primary.gql +50 -0
- package/tests/cases/integration/graphQlSchema/schema-deprecation.gql +962 -0
- package/tests/cases/integration/graphQlSchema/schema-description.gql +992 -0
- package/tests/cases/integration/graphQlSchema/schema-has-many-reduction.gql +17 -0
- package/tests/cases/integration/graphQlSchema/schema-mixed-root-through.gql +1 -0
- package/tests/cases/integration/graphQlSchema/schema-new-builder.gql +50 -0
- package/tests/cases/integration/graphQlSchema/schema-no-root-ops.gql +1 -0
- package/tests/cases/unit/checkViolationError.test.ts +49 -0
- package/tests/cases/unit/dateType.test.ts +46 -0
- package/tests/cases/unit/decimalType.test.ts +2 -2
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { graphql, printSchema } from 'graphql'
|
|
1
|
+
import { graphql, printIntrospectionSchema, printSchema } from 'graphql'
|
|
2
2
|
import { Acl, Model } from '@contember/schema'
|
|
3
3
|
import * as fs from 'node:fs/promises'
|
|
4
4
|
import * as path from 'node:path'
|
|
5
5
|
import { AllowAllPermissionFactory, c, createSchema, SchemaBuilder, SchemaDefinition, SchemaDefinition as def } from '@contember/schema-definition'
|
|
6
6
|
import { Authorizator, GraphQlSchemaBuilderFactory, PermissionFactory } from '../../../../src/index.js'
|
|
7
7
|
import * as model from './model.js'
|
|
8
|
+
import { SchemaValidator } from '@contember/schema-utils'
|
|
8
9
|
import { describe, expect, it } from 'bun:test'
|
|
9
10
|
import { dirname } from 'node:path'
|
|
10
11
|
import { fileURLToPath } from 'node:url'
|
|
@@ -244,6 +245,34 @@ describe('GraphQL schema builder', () => {
|
|
|
244
245
|
})
|
|
245
246
|
})
|
|
246
247
|
|
|
248
|
+
// `set` diffs the current members against the input, so a role that cannot read the target
|
|
249
|
+
// could only ever add to the collection - the operation is not offered at all.
|
|
250
|
+
it('ACL with relations - restricted read hides set', async () => {
|
|
251
|
+
await testSchema({
|
|
252
|
+
schema: oneHasManySchema,
|
|
253
|
+
permissions: () => ({
|
|
254
|
+
Root: {
|
|
255
|
+
predicates: {},
|
|
256
|
+
operations: {
|
|
257
|
+
create: { id: true },
|
|
258
|
+
update: { id: true },
|
|
259
|
+
read: { id: true },
|
|
260
|
+
delete: true,
|
|
261
|
+
},
|
|
262
|
+
},
|
|
263
|
+
OneHasManyEntity: {
|
|
264
|
+
predicates: {},
|
|
265
|
+
operations: {
|
|
266
|
+
create: { id: true, a: true, r2: true },
|
|
267
|
+
update: { id: true, a: true, r2: true },
|
|
268
|
+
delete: true,
|
|
269
|
+
},
|
|
270
|
+
},
|
|
271
|
+
}),
|
|
272
|
+
graphQlSchemaFile: 'schema-acl-restricted-read.gql',
|
|
273
|
+
})
|
|
274
|
+
})
|
|
275
|
+
|
|
247
276
|
it('ACL with relations - restricted update', async () => {
|
|
248
277
|
await testSchema({
|
|
249
278
|
schema: oneHasManySchema,
|
|
@@ -448,6 +477,24 @@ describe('GraphQL schema builder', () => {
|
|
|
448
477
|
graphQlSchemaFile: 'schema-array.gql',
|
|
449
478
|
})
|
|
450
479
|
})
|
|
480
|
+
|
|
481
|
+
it('descriptions', async () => {
|
|
482
|
+
expect(SchemaValidator.validate(createSchema(ModelWithDescriptions))).toEqual([])
|
|
483
|
+
await testSchema({
|
|
484
|
+
schema: () => SchemaDefinition.createModel(ModelWithDescriptions),
|
|
485
|
+
permissions: schema => new AllowAllPermissionFactory().create(schema),
|
|
486
|
+
graphQlSchemaFile: 'schema-description.gql',
|
|
487
|
+
})
|
|
488
|
+
})
|
|
489
|
+
|
|
490
|
+
it('deprecation', async () => {
|
|
491
|
+
expect(SchemaValidator.validate(createSchema(ModelWithDeprecation))).toEqual([])
|
|
492
|
+
await testSchema({
|
|
493
|
+
schema: () => SchemaDefinition.createModel(ModelWithDeprecation),
|
|
494
|
+
permissions: schema => new AllowAllPermissionFactory().create(schema),
|
|
495
|
+
graphQlSchemaFile: 'schema-deprecation.gql',
|
|
496
|
+
})
|
|
497
|
+
})
|
|
451
498
|
})
|
|
452
499
|
|
|
453
500
|
namespace ViewEntity {
|
|
@@ -566,3 +613,57 @@ namespace NoRootOperation {
|
|
|
566
613
|
url = c.stringColumn()
|
|
567
614
|
}
|
|
568
615
|
}
|
|
616
|
+
|
|
617
|
+
namespace ModelWithDescriptions {
|
|
618
|
+
@c.Description('description of entity Article')
|
|
619
|
+
export class Article {
|
|
620
|
+
title = c.stringColumn().description('description of Article.title')
|
|
621
|
+
category = c.manyHasOne(Category, 'articles').description('description of Article.category')
|
|
622
|
+
tags = c.manyHasMany(Tag, 'articles').description('description of Article.tags')
|
|
623
|
+
stats = c.oneHasOne(ArticleStats, 'article').description('description of Article.stats')
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
@c.Description('description of entity ArticleStats')
|
|
627
|
+
export class ArticleStats {
|
|
628
|
+
article = c.oneHasOneInverse(Article, 'stats').description('description of ArticleStats.article')
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
@c.Description('description of entity Category')
|
|
632
|
+
export class Category {
|
|
633
|
+
name = c.stringColumn().description('description of Category.name')
|
|
634
|
+
articles = c.oneHasMany(Article, 'category').description('description of Category.articles')
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
@c.Description('description of entity Tag')
|
|
638
|
+
export class Tag {
|
|
639
|
+
name = c.stringColumn().description('description of Tag.name')
|
|
640
|
+
articles = c.manyHasManyInverse(Article, 'tags').description('description of Tag.articles')
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
namespace ModelWithDeprecation {
|
|
645
|
+
@c.Deprecated('deprecated entity Article')
|
|
646
|
+
export class Article {
|
|
647
|
+
title = c.stringColumn().deprecated('deprecated Article.title')
|
|
648
|
+
category = c.manyHasOne(Category, 'articles').deprecated('deprecated Article.category')
|
|
649
|
+
tags = c.manyHasMany(Tag, 'articles').deprecated('deprecated Article.tags')
|
|
650
|
+
stats = c.oneHasOne(ArticleStats, 'article').deprecated('deprecated Article.stats')
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
@c.Deprecated('deprecated entity ArticleStats')
|
|
654
|
+
export class ArticleStats {
|
|
655
|
+
article = c.oneHasOneInverse(Article, 'stats').deprecated('deprecated ArticleStats.article')
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
@c.Deprecated('deprecated entity Category')
|
|
659
|
+
export class Category {
|
|
660
|
+
name = c.stringColumn().notNull().deprecated('deprecated Category.name')
|
|
661
|
+
articles = c.oneHasMany(Article, 'category').deprecated('deprecated Category.articles')
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
@c.Deprecated()
|
|
665
|
+
export class Tag {
|
|
666
|
+
name = c.stringColumn().deprecated()
|
|
667
|
+
articles = c.manyHasManyInverse(Article, 'tags').deprecated()
|
|
668
|
+
}
|
|
669
|
+
}
|
|
@@ -273,6 +273,8 @@ input RootUpdateREntityRelationInput {
|
|
|
273
273
|
connectOrCreate: RootConnectOrCreateRRelationInput
|
|
274
274
|
disconnect: OneHasManyEntityUniqueWhere
|
|
275
275
|
delete: OneHasManyEntityUniqueWhere
|
|
276
|
+
set: [RootSetRItemRelationInput!]
|
|
277
|
+
orphanStrategy: OrphanRemovalStrategy
|
|
276
278
|
alias: String
|
|
277
279
|
}
|
|
278
280
|
|
|
@@ -292,6 +294,20 @@ input RootUpsertRRelationInput {
|
|
|
292
294
|
create: OneHasManyEntityWithoutR2CreateInput!
|
|
293
295
|
}
|
|
294
296
|
|
|
297
|
+
input RootSetRItemRelationInput {
|
|
298
|
+
create: OneHasManyEntityWithoutR2CreateInput
|
|
299
|
+
connect: OneHasManyEntityUniqueWhere
|
|
300
|
+
connectOrCreate: RootConnectOrCreateRRelationInput
|
|
301
|
+
update: RootUpdateRRelationInput
|
|
302
|
+
upsert: RootUpsertRRelationInput
|
|
303
|
+
alias: String
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
enum OrphanRemovalStrategy {
|
|
307
|
+
disconnect
|
|
308
|
+
delete
|
|
309
|
+
}
|
|
310
|
+
|
|
295
311
|
type QueryTransaction {
|
|
296
312
|
getOneHasManyEntity(by: OneHasManyEntityUniqueWhere!, filter: OneHasManyEntityWhere): OneHasManyEntity
|
|
297
313
|
listOneHasManyEntity(filter: OneHasManyEntityWhere, orderBy: [OneHasManyEntityOrderBy!], offset: Int, limit: Int): [OneHasManyEntity!]!
|
|
@@ -347,6 +363,7 @@ enum _MutationErrorType {
|
|
|
347
363
|
NotNullConstraintViolation
|
|
348
364
|
UniqueConstraintViolation
|
|
349
365
|
ForeignKeyConstraintViolation
|
|
366
|
+
CheckConstraintViolation
|
|
350
367
|
NotFoundOrDenied
|
|
351
368
|
NonUniqueWhereInput
|
|
352
369
|
InvalidDataInput
|
|
@@ -209,6 +209,8 @@ input RootUpdateREntityRelationInput {
|
|
|
209
209
|
connect: OneHasManyEntityUniqueWhere
|
|
210
210
|
disconnect: OneHasManyEntityUniqueWhere
|
|
211
211
|
delete: OneHasManyEntityUniqueWhere
|
|
212
|
+
set: [RootSetRItemRelationInput!]
|
|
213
|
+
orphanStrategy: OrphanRemovalStrategy
|
|
212
214
|
alias: String
|
|
213
215
|
}
|
|
214
216
|
|
|
@@ -222,6 +224,17 @@ input OneHasManyEntityWithoutR2UpdateInput {
|
|
|
222
224
|
_dummy_field_: Boolean
|
|
223
225
|
}
|
|
224
226
|
|
|
227
|
+
input RootSetRItemRelationInput {
|
|
228
|
+
connect: OneHasManyEntityUniqueWhere
|
|
229
|
+
update: RootUpdateRRelationInput
|
|
230
|
+
alias: String
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
enum OrphanRemovalStrategy {
|
|
234
|
+
disconnect
|
|
235
|
+
delete
|
|
236
|
+
}
|
|
237
|
+
|
|
225
238
|
type QueryTransaction {
|
|
226
239
|
getOneHasManyEntity(by: OneHasManyEntityUniqueWhere!, filter: OneHasManyEntityWhere): OneHasManyEntity
|
|
227
240
|
listOneHasManyEntity(filter: OneHasManyEntityWhere, orderBy: [OneHasManyEntityOrderBy!], offset: Int, limit: Int): [OneHasManyEntity!]!
|
|
@@ -270,6 +283,7 @@ enum _MutationErrorType {
|
|
|
270
283
|
NotNullConstraintViolation
|
|
271
284
|
UniqueConstraintViolation
|
|
272
285
|
ForeignKeyConstraintViolation
|
|
286
|
+
CheckConstraintViolation
|
|
273
287
|
NotFoundOrDenied
|
|
274
288
|
NonUniqueWhereInput
|
|
275
289
|
InvalidDataInput
|
|
@@ -264,6 +264,7 @@ input RootUpdateREntityRelationInput {
|
|
|
264
264
|
connect: OneHasManyEntityUniqueWhere
|
|
265
265
|
connectOrCreate: RootConnectOrCreateRRelationInput
|
|
266
266
|
disconnect: OneHasManyEntityUniqueWhere
|
|
267
|
+
set: [RootSetRItemRelationInput!]
|
|
267
268
|
alias: String
|
|
268
269
|
}
|
|
269
270
|
|
|
@@ -283,6 +284,15 @@ input RootUpsertRRelationInput {
|
|
|
283
284
|
create: OneHasManyEntityWithoutR2CreateInput!
|
|
284
285
|
}
|
|
285
286
|
|
|
287
|
+
input RootSetRItemRelationInput {
|
|
288
|
+
create: OneHasManyEntityWithoutR2CreateInput
|
|
289
|
+
connect: OneHasManyEntityUniqueWhere
|
|
290
|
+
connectOrCreate: RootConnectOrCreateRRelationInput
|
|
291
|
+
update: RootUpdateRRelationInput
|
|
292
|
+
upsert: RootUpsertRRelationInput
|
|
293
|
+
alias: String
|
|
294
|
+
}
|
|
295
|
+
|
|
286
296
|
type QueryTransaction {
|
|
287
297
|
getOneHasManyEntity(by: OneHasManyEntityUniqueWhere!, filter: OneHasManyEntityWhere): OneHasManyEntity
|
|
288
298
|
listOneHasManyEntity(filter: OneHasManyEntityWhere, orderBy: [OneHasManyEntityOrderBy!], offset: Int, limit: Int): [OneHasManyEntity!]!
|
|
@@ -337,6 +347,7 @@ enum _MutationErrorType {
|
|
|
337
347
|
NotNullConstraintViolation
|
|
338
348
|
UniqueConstraintViolation
|
|
339
349
|
ForeignKeyConstraintViolation
|
|
350
|
+
CheckConstraintViolation
|
|
340
351
|
NotFoundOrDenied
|
|
341
352
|
NonUniqueWhereInput
|
|
342
353
|
InvalidDataInput
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
type Query {
|
|
2
|
+
validateCreateOneHasManyEntity(data: OneHasManyEntityCreateInput!): _ValidationResult!
|
|
3
|
+
getRoot(by: RootUniqueWhere!, filter: RootWhere): Root
|
|
4
|
+
listRoot(filter: RootWhere, orderBy: [RootOrderBy!], offset: Int, limit: Int): [Root!]!
|
|
5
|
+
paginateRoot(filter: RootWhere, orderBy: [RootOrderBy!], skip: Int, first: Int): RootConnection!
|
|
6
|
+
validateCreateRoot(data: RootCreateInput!): _ValidationResult!
|
|
7
|
+
validateUpdateRoot(by: RootUniqueWhere!, data: RootUpdateInput!): _ValidationResult!
|
|
8
|
+
transaction: QueryTransaction
|
|
9
|
+
_info: Info
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
type _ValidationResult {
|
|
13
|
+
valid: Boolean!
|
|
14
|
+
errors: [_ValidationError!]!
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
type _ValidationError {
|
|
18
|
+
path: [_PathFragment!]!
|
|
19
|
+
message: _ValidationMessage!
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
union _PathFragment = _FieldPathFragment | _IndexPathFragment
|
|
23
|
+
|
|
24
|
+
type _FieldPathFragment {
|
|
25
|
+
field: String!
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
type _IndexPathFragment {
|
|
29
|
+
index: Int!
|
|
30
|
+
alias: String
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
type _ValidationMessage {
|
|
34
|
+
text: String!
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
input OneHasManyEntityCreateInput {
|
|
38
|
+
a: String
|
|
39
|
+
r2: OneHasManyEntityCreateR2EntityRelationInput
|
|
40
|
+
_dummy_field_: Boolean
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
input OneHasManyEntityCreateR2EntityRelationInput {
|
|
44
|
+
connect: RootUniqueWhere
|
|
45
|
+
create: RootWithoutRCreateInput
|
|
46
|
+
connectOrCreate: OneHasManyEntityConnectOrCreateR2RelationInput
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
input RootUniqueWhere {
|
|
50
|
+
id: UUID
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
scalar UUID
|
|
54
|
+
|
|
55
|
+
input RootWithoutRCreateInput {
|
|
56
|
+
_dummy_field_: Boolean
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
input OneHasManyEntityConnectOrCreateR2RelationInput {
|
|
60
|
+
connect: RootUniqueWhere!
|
|
61
|
+
create: RootWithoutRCreateInput!
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
type Root {
|
|
65
|
+
_meta: RootMeta
|
|
66
|
+
id: UUID!
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
type RootMeta {
|
|
70
|
+
id: FieldMeta
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
type FieldMeta {
|
|
74
|
+
readable: Boolean
|
|
75
|
+
updatable: Boolean
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
input RootWhere {
|
|
79
|
+
id: UUIDCondition
|
|
80
|
+
and: [RootWhere]
|
|
81
|
+
or: [RootWhere]
|
|
82
|
+
not: RootWhere
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
input UUIDCondition {
|
|
86
|
+
and: [UUIDCondition!]
|
|
87
|
+
or: [UUIDCondition!]
|
|
88
|
+
not: UUIDCondition
|
|
89
|
+
null: Boolean
|
|
90
|
+
isNull: Boolean
|
|
91
|
+
eq: UUID
|
|
92
|
+
notEq: UUID
|
|
93
|
+
in: [UUID!]
|
|
94
|
+
notIn: [UUID!]
|
|
95
|
+
lt: UUID
|
|
96
|
+
lte: UUID
|
|
97
|
+
gt: UUID
|
|
98
|
+
gte: UUID
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
input RootOrderBy {
|
|
102
|
+
_random: Boolean
|
|
103
|
+
_randomSeeded: Int
|
|
104
|
+
id: OrderDirection
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
enum OrderDirection {
|
|
108
|
+
asc
|
|
109
|
+
desc
|
|
110
|
+
ascNullsFirst
|
|
111
|
+
descNullsLast
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
type RootConnection {
|
|
115
|
+
pageInfo: PageInfo!
|
|
116
|
+
edges: [RootEdge!]!
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
type PageInfo {
|
|
120
|
+
totalCount: Int!
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
type RootEdge {
|
|
124
|
+
node: Root!
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
input RootCreateInput {
|
|
128
|
+
r: [RootCreateREntityRelationInput!]
|
|
129
|
+
_dummy_field_: Boolean
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
input RootCreateREntityRelationInput {
|
|
133
|
+
create: OneHasManyEntityWithoutR2CreateInput
|
|
134
|
+
alias: String
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
input OneHasManyEntityWithoutR2CreateInput {
|
|
138
|
+
a: String
|
|
139
|
+
_dummy_field_: Boolean
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
input RootUpdateInput {
|
|
143
|
+
r: [RootUpdateREntityRelationInput!]
|
|
144
|
+
_dummy_field_: Boolean
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
input RootUpdateREntityRelationInput {
|
|
148
|
+
create: OneHasManyEntityWithoutR2CreateInput
|
|
149
|
+
alias: String
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
type QueryTransaction {
|
|
153
|
+
validateCreateOneHasManyEntity(data: OneHasManyEntityCreateInput!): _ValidationResult!
|
|
154
|
+
getRoot(by: RootUniqueWhere!, filter: RootWhere): Root
|
|
155
|
+
listRoot(filter: RootWhere, orderBy: [RootOrderBy!], offset: Int, limit: Int): [Root!]!
|
|
156
|
+
paginateRoot(filter: RootWhere, orderBy: [RootOrderBy!], skip: Int, first: Int): RootConnection!
|
|
157
|
+
validateCreateRoot(data: RootCreateInput!): _ValidationResult!
|
|
158
|
+
validateUpdateRoot(by: RootUniqueWhere!, data: RootUpdateInput!): _ValidationResult!
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
type Info {
|
|
162
|
+
description: String
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
type Mutation {
|
|
166
|
+
createOneHasManyEntity(data: OneHasManyEntityCreateInput!): OneHasManyEntityCreateResult!
|
|
167
|
+
createRoot(data: RootCreateInput!): RootCreateResult!
|
|
168
|
+
deleteRoot(by: RootUniqueWhere!, filter: RootWhere): RootDeleteResult!
|
|
169
|
+
updateRoot(by: RootUniqueWhere!, filter: RootWhere, data: RootUpdateInput!): RootUpdateResult!
|
|
170
|
+
upsertRoot(by: RootUniqueWhere!, filter: RootWhere, update: RootUpdateInput!, create: RootCreateInput!): RootUpsertResult!
|
|
171
|
+
transaction(options: MutationTransactionOptions): MutationTransaction!
|
|
172
|
+
query: Query!
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
type OneHasManyEntityCreateResult implements MutationResult {
|
|
176
|
+
ok: Boolean!
|
|
177
|
+
errorMessage: String
|
|
178
|
+
errors: [_MutationError!]!
|
|
179
|
+
validation: _ValidationResult!
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
interface MutationResult {
|
|
183
|
+
ok: Boolean!
|
|
184
|
+
errorMessage: String
|
|
185
|
+
errors: [_MutationError!]!
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
type _MutationError {
|
|
189
|
+
path: [_PathFragment!]! @deprecated(reason: "Use `paths`.")
|
|
190
|
+
paths: [[_PathFragment!]!]!
|
|
191
|
+
type: _MutationErrorType!
|
|
192
|
+
message: String
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
enum _MutationErrorType {
|
|
196
|
+
NotNullConstraintViolation
|
|
197
|
+
UniqueConstraintViolation
|
|
198
|
+
ForeignKeyConstraintViolation
|
|
199
|
+
CheckConstraintViolation
|
|
200
|
+
NotFoundOrDenied
|
|
201
|
+
NonUniqueWhereInput
|
|
202
|
+
InvalidDataInput
|
|
203
|
+
SqlError
|
|
204
|
+
ResourceExhausted
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
type RootCreateResult implements MutationResult {
|
|
208
|
+
ok: Boolean!
|
|
209
|
+
errorMessage: String
|
|
210
|
+
errors: [_MutationError!]!
|
|
211
|
+
node: Root
|
|
212
|
+
validation: _ValidationResult!
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
type RootDeleteResult implements MutationResult {
|
|
216
|
+
ok: Boolean!
|
|
217
|
+
errorMessage: String
|
|
218
|
+
errors: [_MutationError!]!
|
|
219
|
+
node: Root
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
type RootUpdateResult implements MutationResult {
|
|
223
|
+
ok: Boolean!
|
|
224
|
+
errorMessage: String
|
|
225
|
+
errors: [_MutationError!]!
|
|
226
|
+
node: Root
|
|
227
|
+
validation: _ValidationResult!
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
type RootUpsertResult implements MutationResult {
|
|
231
|
+
ok: Boolean!
|
|
232
|
+
errorMessage: String
|
|
233
|
+
errors: [_MutationError!]!
|
|
234
|
+
node: Root
|
|
235
|
+
validation: _ValidationResult!
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
type MutationTransaction {
|
|
239
|
+
ok: Boolean!
|
|
240
|
+
errorMessage: String
|
|
241
|
+
errors: [_MutationError!]!
|
|
242
|
+
validation: _ValidationResult!
|
|
243
|
+
createOneHasManyEntity(data: OneHasManyEntityCreateInput!): OneHasManyEntityCreateResult!
|
|
244
|
+
createRoot(data: RootCreateInput!): RootCreateResult!
|
|
245
|
+
deleteRoot(by: RootUniqueWhere!, filter: RootWhere): RootDeleteResult!
|
|
246
|
+
updateRoot(by: RootUniqueWhere!, filter: RootWhere, data: RootUpdateInput!): RootUpdateResult!
|
|
247
|
+
upsertRoot(by: RootUniqueWhere!, filter: RootWhere, update: RootUpdateInput!, create: RootCreateInput!): RootUpsertResult!
|
|
248
|
+
query: Query
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
input MutationTransactionOptions {
|
|
252
|
+
deferForeignKeyConstraints: Boolean
|
|
253
|
+
deferUniqueConstraints: Boolean
|
|
254
|
+
}
|
|
@@ -395,6 +395,8 @@ input AuthorUpdatePostsEntityRelationInput {
|
|
|
395
395
|
connectOrCreate: AuthorConnectOrCreatePostsRelationInput
|
|
396
396
|
disconnect: PostUniqueWhere
|
|
397
397
|
delete: PostUniqueWhere
|
|
398
|
+
set: [AuthorSetPostsItemRelationInput!]
|
|
399
|
+
orphanStrategy: OrphanRemovalStrategy
|
|
398
400
|
alias: String
|
|
399
401
|
}
|
|
400
402
|
|
|
@@ -418,6 +420,8 @@ input PostUpdateLocalesEntityRelationInput {
|
|
|
418
420
|
connectOrCreate: PostConnectOrCreateLocalesRelationInput
|
|
419
421
|
disconnect: PostLocaleUniqueWhere
|
|
420
422
|
delete: PostLocaleUniqueWhere
|
|
423
|
+
set: [PostSetLocalesItemRelationInput!]
|
|
424
|
+
orphanStrategy: OrphanRemovalStrategy
|
|
421
425
|
alias: String
|
|
422
426
|
}
|
|
423
427
|
|
|
@@ -437,6 +441,20 @@ input PostUpsertLocalesRelationInput {
|
|
|
437
441
|
create: PostLocaleWithoutPostCreateInput!
|
|
438
442
|
}
|
|
439
443
|
|
|
444
|
+
input PostSetLocalesItemRelationInput {
|
|
445
|
+
create: PostLocaleWithoutPostCreateInput
|
|
446
|
+
connect: PostLocaleUniqueWhere
|
|
447
|
+
connectOrCreate: PostConnectOrCreateLocalesRelationInput
|
|
448
|
+
update: PostUpdateLocalesRelationInput
|
|
449
|
+
upsert: PostUpsertLocalesRelationInput
|
|
450
|
+
alias: String
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
enum OrphanRemovalStrategy {
|
|
454
|
+
disconnect
|
|
455
|
+
delete
|
|
456
|
+
}
|
|
457
|
+
|
|
440
458
|
input PostUpdateCategoriesEntityRelationInput {
|
|
441
459
|
create: CategoryWithoutPostsCreateInput
|
|
442
460
|
update: PostUpdateCategoriesRelationInput
|
|
@@ -445,6 +463,8 @@ input PostUpdateCategoriesEntityRelationInput {
|
|
|
445
463
|
connectOrCreate: PostConnectOrCreateCategoriesRelationInput
|
|
446
464
|
disconnect: CategoryUniqueWhere
|
|
447
465
|
delete: CategoryUniqueWhere
|
|
466
|
+
set: [PostSetCategoriesItemRelationInput!]
|
|
467
|
+
orphanStrategy: OrphanRemovalStrategy
|
|
448
468
|
alias: String
|
|
449
469
|
}
|
|
450
470
|
|
|
@@ -464,12 +484,30 @@ input PostUpsertCategoriesRelationInput {
|
|
|
464
484
|
create: CategoryWithoutPostsCreateInput!
|
|
465
485
|
}
|
|
466
486
|
|
|
487
|
+
input PostSetCategoriesItemRelationInput {
|
|
488
|
+
create: CategoryWithoutPostsCreateInput
|
|
489
|
+
connect: CategoryUniqueWhere
|
|
490
|
+
connectOrCreate: PostConnectOrCreateCategoriesRelationInput
|
|
491
|
+
update: PostUpdateCategoriesRelationInput
|
|
492
|
+
upsert: PostUpsertCategoriesRelationInput
|
|
493
|
+
alias: String
|
|
494
|
+
}
|
|
495
|
+
|
|
467
496
|
input AuthorUpsertPostsRelationInput {
|
|
468
497
|
by: PostUniqueWhere!
|
|
469
498
|
update: PostWithoutAuthorUpdateInput!
|
|
470
499
|
create: PostWithoutAuthorCreateInput!
|
|
471
500
|
}
|
|
472
501
|
|
|
502
|
+
input AuthorSetPostsItemRelationInput {
|
|
503
|
+
create: PostWithoutAuthorCreateInput
|
|
504
|
+
connect: PostUniqueWhere
|
|
505
|
+
connectOrCreate: AuthorConnectOrCreatePostsRelationInput
|
|
506
|
+
update: AuthorUpdatePostsRelationInput
|
|
507
|
+
upsert: AuthorUpsertPostsRelationInput
|
|
508
|
+
alias: String
|
|
509
|
+
}
|
|
510
|
+
|
|
473
511
|
input CategoryCreateInput {
|
|
474
512
|
name: String
|
|
475
513
|
posts: [CategoryCreatePostsEntityRelationInput!]
|
|
@@ -525,6 +563,8 @@ input CategoryUpdatePostsEntityRelationInput {
|
|
|
525
563
|
connectOrCreate: CategoryConnectOrCreatePostsRelationInput
|
|
526
564
|
disconnect: PostUniqueWhere
|
|
527
565
|
delete: PostUniqueWhere
|
|
566
|
+
set: [CategorySetPostsItemRelationInput!]
|
|
567
|
+
orphanStrategy: OrphanRemovalStrategy
|
|
528
568
|
alias: String
|
|
529
569
|
}
|
|
530
570
|
|
|
@@ -566,6 +606,15 @@ input CategoryUpsertPostsRelationInput {
|
|
|
566
606
|
create: PostWithoutCategoriesCreateInput!
|
|
567
607
|
}
|
|
568
608
|
|
|
609
|
+
input CategorySetPostsItemRelationInput {
|
|
610
|
+
create: PostWithoutCategoriesCreateInput
|
|
611
|
+
connect: PostUniqueWhere
|
|
612
|
+
connectOrCreate: CategoryConnectOrCreatePostsRelationInput
|
|
613
|
+
update: CategoryUpdatePostsRelationInput
|
|
614
|
+
upsert: CategoryUpsertPostsRelationInput
|
|
615
|
+
alias: String
|
|
616
|
+
}
|
|
617
|
+
|
|
569
618
|
input PostLocaleCreateInput {
|
|
570
619
|
title: String
|
|
571
620
|
Post: PostLocaleCreatePostEntityRelationInput
|
|
@@ -707,6 +756,7 @@ enum _MutationErrorType {
|
|
|
707
756
|
NotNullConstraintViolation
|
|
708
757
|
UniqueConstraintViolation
|
|
709
758
|
ForeignKeyConstraintViolation
|
|
759
|
+
CheckConstraintViolation
|
|
710
760
|
NotFoundOrDenied
|
|
711
761
|
NonUniqueWhereInput
|
|
712
762
|
InvalidDataInput
|
|
@@ -323,6 +323,8 @@ input FrontPageUpdateInHouseVideosEntityRelationInput {
|
|
|
323
323
|
connectOrCreate: FrontPageConnectOrCreateInHouseVideosRelationInput
|
|
324
324
|
disconnect: VideoUniqueWhere
|
|
325
325
|
delete: VideoUniqueWhere
|
|
326
|
+
set: [FrontPageSetInHouseVideosItemRelationInput!]
|
|
327
|
+
orphanStrategy: OrphanRemovalStrategy
|
|
326
328
|
alias: String
|
|
327
329
|
}
|
|
328
330
|
|
|
@@ -343,6 +345,20 @@ input FrontPageUpsertInHouseVideosRelationInput {
|
|
|
343
345
|
create: VideoWithoutFrontPageCreateInput!
|
|
344
346
|
}
|
|
345
347
|
|
|
348
|
+
input FrontPageSetInHouseVideosItemRelationInput {
|
|
349
|
+
create: VideoWithoutFrontPageCreateInput
|
|
350
|
+
connect: VideoUniqueWhere
|
|
351
|
+
connectOrCreate: FrontPageConnectOrCreateInHouseVideosRelationInput
|
|
352
|
+
update: FrontPageUpdateInHouseVideosRelationInput
|
|
353
|
+
upsert: FrontPageUpsertInHouseVideosRelationInput
|
|
354
|
+
alias: String
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
enum OrphanRemovalStrategy {
|
|
358
|
+
disconnect
|
|
359
|
+
delete
|
|
360
|
+
}
|
|
361
|
+
|
|
346
362
|
input VideoUpsertFrontPageForIntroRelationInput {
|
|
347
363
|
update: FrontPageWithoutIntroVideoUpdateInput!
|
|
348
364
|
create: FrontPageWithoutIntroVideoCreateInput!
|
|
@@ -468,6 +484,7 @@ enum _MutationErrorType {
|
|
|
468
484
|
NotNullConstraintViolation
|
|
469
485
|
UniqueConstraintViolation
|
|
470
486
|
ForeignKeyConstraintViolation
|
|
487
|
+
CheckConstraintViolation
|
|
471
488
|
NotFoundOrDenied
|
|
472
489
|
NonUniqueWhereInput
|
|
473
490
|
InvalidDataInput
|