@contember/engine-content-api 2.1.0-rc.3 → 2.2.0-alpha.10
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/CLAUDE.md +12 -0
- package/dist/development/src/ExecutionContainer.cjs +7 -4
- package/dist/development/src/ExecutionContainer.cjs.map +1 -1
- package/dist/development/src/ExecutionContainer.js +7 -4
- package/dist/development/src/ExecutionContainer.js.map +1 -1
- package/dist/development/src/acl/EvaluatedPredicateReplacer.cjs.map +1 -1
- package/dist/development/src/acl/EvaluatedPredicateReplacer.js.map +1 -1
- package/dist/development/src/acl/PermissionFactory.cjs.map +1 -1
- package/dist/development/src/acl/PermissionFactory.js.map +1 -1
- package/dist/development/src/acl/PredicateFactory.cjs.map +1 -1
- package/dist/development/src/acl/PredicateFactory.js.map +1 -1
- package/dist/development/src/acl/PredicatesInjector.cjs.map +1 -1
- package/dist/development/src/acl/PredicatesInjector.js.map +1 -1
- package/dist/development/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducer.cjs.map +1 -1
- package/dist/development/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducer.js.map +1 -1
- package/dist/development/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducerExecutionHandler.cjs.map +1 -1
- package/dist/development/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducerExecutionHandler.js.map +1 -1
- package/dist/development/src/extensions/hasManyToHasOneReducer/HasManyToHasOneRelationReducerVisitor.cjs.map +1 -1
- package/dist/development/src/extensions/hasManyToHasOneReducer/HasManyToHasOneRelationReducerVisitor.js.map +1 -1
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyCountVisitor.cjs.map +1 -1
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyCountVisitor.js.map +1 -1
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyExecutionHandler.cjs.map +1 -1
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyExecutionHandler.js.map +1 -1
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyFieldProvider.cjs.map +1 -1
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyFieldProvider.js.map +1 -1
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyFieldProviderVisitor.cjs.map +1 -1
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyFieldProviderVisitor.js.map +1 -1
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyNodesVisitor.cjs.map +1 -1
- package/dist/development/src/extensions/paginatedHasMany/PaginatedHasManyNodesVisitor.js.map +1 -1
- package/dist/development/src/input-validation/EntityRulesResolver.cjs.map +1 -1
- package/dist/development/src/input-validation/EntityRulesResolver.js.map +1 -1
- package/dist/development/src/input-validation/JsonSchemaValidator.cjs +208 -0
- package/dist/development/src/input-validation/JsonSchemaValidator.cjs.map +1 -0
- package/dist/development/src/input-validation/JsonSchemaValidator.js +208 -0
- package/dist/development/src/input-validation/JsonSchemaValidator.js.map +1 -0
- package/dist/development/src/input-validation/QueryAstFactory.cjs.map +1 -1
- package/dist/development/src/input-validation/QueryAstFactory.js.map +1 -1
- package/dist/development/src/input-validation/ValidationContext.cjs.map +1 -1
- package/dist/development/src/input-validation/ValidationContext.js.map +1 -1
- package/dist/development/src/input-validation/ValidationDataSelector.cjs.map +1 -1
- package/dist/development/src/input-validation/ValidationDataSelector.js.map +1 -1
- package/dist/development/src/input-validation/ValidationEvaluation.cjs.map +1 -1
- package/dist/development/src/input-validation/ValidationEvaluation.js.map +1 -1
- package/dist/development/src/input-validation/dependencies/DependencyCollector.cjs.map +1 -1
- package/dist/development/src/input-validation/dependencies/DependencyCollector.js.map +1 -1
- package/dist/development/src/input-validation/dependencies/DependencyMerger.cjs.map +1 -1
- package/dist/development/src/input-validation/dependencies/DependencyMerger.js.map +1 -1
- package/dist/development/src/input-validation/preValidation/CreateInputPreValidationProcessor.cjs.map +1 -1
- package/dist/development/src/input-validation/preValidation/CreateInputPreValidationProcessor.js.map +1 -1
- package/dist/development/src/input-validation/preValidation/InputPreValidator.cjs +38 -2
- package/dist/development/src/input-validation/preValidation/InputPreValidator.cjs.map +1 -1
- package/dist/development/src/input-validation/preValidation/InputPreValidator.js +38 -2
- package/dist/development/src/input-validation/preValidation/InputPreValidator.js.map +1 -1
- package/dist/development/src/input-validation/preValidation/UpdateInputPreValidationProcessor.cjs.map +1 -1
- package/dist/development/src/input-validation/preValidation/UpdateInputPreValidationProcessor.js.map +1 -1
- package/dist/development/src/inputProcessing/CreateInputVisitor.cjs.map +1 -1
- package/dist/development/src/inputProcessing/CreateInputVisitor.js.map +1 -1
- package/dist/development/src/inputProcessing/ObjectNode.cjs.map +1 -1
- package/dist/development/src/inputProcessing/ObjectNode.js.map +1 -1
- package/dist/development/src/inputProcessing/UniqueWhereExpander.cjs.map +1 -1
- package/dist/development/src/inputProcessing/UniqueWhereExpander.js.map +1 -1
- package/dist/development/src/inputProcessing/UpdateInputVisitor.cjs.map +1 -1
- package/dist/development/src/inputProcessing/UpdateInputVisitor.js.map +1 -1
- package/dist/development/src/introspection/IntrospectionSchemaDefinitionFactory.cjs.map +1 -1
- package/dist/development/src/introspection/IntrospectionSchemaDefinitionFactory.js.map +1 -1
- package/dist/development/src/introspection/IntrospectionSchemaFactory.cjs.map +1 -1
- package/dist/development/src/introspection/IntrospectionSchemaFactory.js.map +1 -1
- package/dist/development/src/mapper/ErrorUtils.cjs.map +1 -1
- package/dist/development/src/mapper/ErrorUtils.js.map +1 -1
- package/dist/development/src/mapper/EventManager.cjs.map +1 -1
- package/dist/development/src/mapper/EventManager.js.map +1 -1
- package/dist/development/src/mapper/JunctionTableManager.cjs.map +1 -1
- package/dist/development/src/mapper/JunctionTableManager.js.map +1 -1
- package/dist/development/src/mapper/Mapper.cjs +8 -5
- package/dist/development/src/mapper/Mapper.cjs.map +1 -1
- package/dist/development/src/mapper/Mapper.js +8 -5
- package/dist/development/src/mapper/Mapper.js.map +1 -1
- package/dist/development/src/mapper/MapperFactory.cjs +7 -4
- package/dist/development/src/mapper/MapperFactory.cjs.map +1 -1
- package/dist/development/src/mapper/MapperFactory.js +7 -4
- package/dist/development/src/mapper/MapperFactory.js.map +1 -1
- package/dist/development/src/mapper/MutationProcessorHelper.cjs.map +1 -1
- package/dist/development/src/mapper/MutationProcessorHelper.js.map +1 -1
- package/dist/development/src/mapper/Result.cjs.map +1 -1
- package/dist/development/src/mapper/Result.js.map +1 -1
- package/dist/development/src/mapper/delete/DeleteExecutor.cjs.map +1 -1
- package/dist/development/src/mapper/delete/DeleteExecutor.js.map +1 -1
- package/dist/development/src/mapper/delete/DeleteState.cjs.map +1 -1
- package/dist/development/src/mapper/delete/DeleteState.js.map +1 -1
- package/dist/development/src/mapper/insert/InsertBuilder.cjs.map +1 -1
- package/dist/development/src/mapper/insert/InsertBuilder.js.map +1 -1
- package/dist/development/src/mapper/insert/InsertBuilderFactory.cjs.map +1 -1
- package/dist/development/src/mapper/insert/InsertBuilderFactory.js.map +1 -1
- package/dist/development/src/mapper/insert/Inserter.cjs.map +1 -1
- package/dist/development/src/mapper/insert/Inserter.js.map +1 -1
- package/dist/development/src/mapper/insert/SqlCreateInputProcessor.cjs.map +1 -1
- package/dist/development/src/mapper/insert/SqlCreateInputProcessor.js.map +1 -1
- package/dist/development/src/mapper/insert/relations/ManyHasManyCreateInputProcessor.cjs.map +1 -1
- package/dist/development/src/mapper/insert/relations/ManyHasManyCreateInputProcessor.js.map +1 -1
- package/dist/development/src/mapper/insert/relations/ManyHasOneCreateInputProcessor.cjs.map +1 -1
- package/dist/development/src/mapper/insert/relations/ManyHasOneCreateInputProcessor.js.map +1 -1
- package/dist/development/src/mapper/insert/relations/OneHasManyCreateInputProcessor.cjs.map +1 -1
- package/dist/development/src/mapper/insert/relations/OneHasManyCreateInputProcessor.js.map +1 -1
- package/dist/development/src/mapper/insert/relations/OneHasOneInverseCreateInputProcessor.cjs.map +1 -1
- package/dist/development/src/mapper/insert/relations/OneHasOneInverseCreateInputProcessor.js.map +1 -1
- package/dist/development/src/mapper/insert/relations/OneHasOneOwningCreateInputProcessor.cjs.map +1 -1
- package/dist/development/src/mapper/insert/relations/OneHasOneOwningCreateInputProcessor.js.map +1 -1
- package/dist/development/src/mapper/select/ConditionBuilder.cjs +10 -1
- package/dist/development/src/mapper/select/ConditionBuilder.cjs.map +1 -1
- package/dist/development/src/mapper/select/ConditionBuilder.js +10 -1
- package/dist/development/src/mapper/select/ConditionBuilder.js.map +1 -1
- package/dist/development/src/mapper/select/JoinBuilder.cjs.map +1 -1
- package/dist/development/src/mapper/select/JoinBuilder.js.map +1 -1
- package/dist/development/src/mapper/select/JoinVisitor.cjs.map +1 -1
- package/dist/development/src/mapper/select/JoinVisitor.js.map +1 -1
- package/dist/development/src/mapper/select/OrderByBuilder.cjs.map +1 -1
- package/dist/development/src/mapper/select/OrderByBuilder.js.map +1 -1
- package/dist/development/src/mapper/select/OrderByHelper.cjs.map +1 -1
- package/dist/development/src/mapper/select/OrderByHelper.js.map +1 -1
- package/dist/development/src/mapper/select/RelationFetcher.cjs +2 -2
- package/dist/development/src/mapper/select/RelationFetcher.cjs.map +1 -1
- package/dist/development/src/mapper/select/RelationFetcher.js +2 -2
- package/dist/development/src/mapper/select/RelationFetcher.js.map +1 -1
- package/dist/development/src/mapper/select/SelectBuilder.cjs.map +1 -1
- package/dist/development/src/mapper/select/SelectBuilder.js.map +1 -1
- package/dist/development/src/mapper/select/SelectHydrator.cjs +39 -19
- package/dist/development/src/mapper/select/SelectHydrator.cjs.map +1 -1
- package/dist/development/src/mapper/select/SelectHydrator.js +39 -19
- package/dist/development/src/mapper/select/SelectHydrator.js.map +1 -1
- package/dist/development/src/mapper/select/WhereBuilder.cjs.map +1 -1
- package/dist/development/src/mapper/select/WhereBuilder.js.map +1 -1
- package/dist/development/src/mapper/select/handlers/FieldsVisitor.cjs +9 -1
- package/dist/development/src/mapper/select/handlers/FieldsVisitor.cjs.map +1 -1
- package/dist/development/src/mapper/select/handlers/FieldsVisitor.js +9 -1
- package/dist/development/src/mapper/select/handlers/FieldsVisitor.js.map +1 -1
- package/dist/development/src/mapper/select/handlers/FieldsVisitorFactory.cjs.map +1 -1
- package/dist/development/src/mapper/select/handlers/FieldsVisitorFactory.js.map +1 -1
- package/dist/development/src/mapper/select/handlers/MetaHandler.cjs.map +1 -1
- package/dist/development/src/mapper/select/handlers/MetaHandler.js.map +1 -1
- package/dist/development/src/mapper/select/optimizer/ConditionOptimizer.cjs.map +1 -1
- package/dist/development/src/mapper/select/optimizer/ConditionOptimizer.js.map +1 -1
- package/dist/development/src/mapper/select/optimizer/WhereOptimizer.cjs.map +1 -1
- package/dist/development/src/mapper/select/optimizer/WhereOptimizer.js.map +1 -1
- package/dist/development/src/mapper/update/SqlUpdateInputProcessor.cjs.map +1 -1
- package/dist/development/src/mapper/update/SqlUpdateInputProcessor.js.map +1 -1
- package/dist/development/src/mapper/update/UpdateBuilder.cjs.map +1 -1
- package/dist/development/src/mapper/update/UpdateBuilder.js.map +1 -1
- package/dist/development/src/mapper/update/UpdateBuilderFactory.cjs.map +1 -1
- package/dist/development/src/mapper/update/UpdateBuilderFactory.js.map +1 -1
- package/dist/development/src/mapper/update/Updater.cjs.map +1 -1
- package/dist/development/src/mapper/update/Updater.js.map +1 -1
- package/dist/development/src/mapper/update/relations/ManyHasManyUpdateInputProcessor.cjs.map +1 -1
- package/dist/development/src/mapper/update/relations/ManyHasManyUpdateInputProcessor.js.map +1 -1
- package/dist/development/src/mapper/update/relations/ManyHasOneUpdateInputProcessor.cjs.map +1 -1
- package/dist/development/src/mapper/update/relations/ManyHasOneUpdateInputProcessor.js.map +1 -1
- package/dist/development/src/mapper/update/relations/OneHasManyUpdateInputProcessor.cjs.map +1 -1
- package/dist/development/src/mapper/update/relations/OneHasManyUpdateInputProcessor.js.map +1 -1
- package/dist/development/src/mapper/update/relations/OneHasOneInverseUpdateInputProcessor.cjs.map +1 -1
- package/dist/development/src/mapper/update/relations/OneHasOneInverseUpdateInputProcessor.js.map +1 -1
- package/dist/development/src/mapper/update/relations/OneHasOneOwningUpdateInputProcessor.cjs.map +1 -1
- package/dist/development/src/mapper/update/relations/OneHasOneOwningUpdateInputProcessor.js.map +1 -1
- package/dist/development/src/resolvers/GraphQlQueryAstFactory.cjs.map +1 -1
- package/dist/development/src/resolvers/GraphQlQueryAstFactory.js.map +1 -1
- package/dist/development/src/resolvers/MutationResolver.cjs +49 -35
- package/dist/development/src/resolvers/MutationResolver.cjs.map +1 -1
- package/dist/development/src/resolvers/MutationResolver.js +50 -36
- package/dist/development/src/resolvers/MutationResolver.js.map +1 -1
- package/dist/development/src/resolvers/ReadHelpers.cjs.map +1 -1
- package/dist/development/src/resolvers/ReadHelpers.js.map +1 -1
- package/dist/development/src/resolvers/ReadResolver.cjs.map +1 -1
- package/dist/development/src/resolvers/ReadResolver.js.map +1 -1
- package/dist/development/src/resolvers/RefreshViewResolver.cjs.map +1 -1
- package/dist/development/src/resolvers/RefreshViewResolver.js.map +1 -1
- package/dist/development/src/resolvers/ValidationResolver.cjs.map +1 -1
- package/dist/development/src/resolvers/ValidationResolver.js.map +1 -1
- package/dist/development/src/schema/ColumnTypeResolver.cjs +2 -0
- package/dist/development/src/schema/ColumnTypeResolver.cjs.map +1 -1
- package/dist/development/src/schema/ColumnTypeResolver.js +2 -0
- package/dist/development/src/schema/ColumnTypeResolver.js.map +1 -1
- package/dist/development/src/schema/ConditionTypeProvider.cjs +2 -0
- package/dist/development/src/schema/ConditionTypeProvider.cjs.map +1 -1
- package/dist/development/src/schema/ConditionTypeProvider.js +2 -0
- package/dist/development/src/schema/ConditionTypeProvider.js.map +1 -1
- package/dist/development/src/schema/CustomTypesProvider.cjs +32 -0
- package/dist/development/src/schema/CustomTypesProvider.cjs.map +1 -1
- package/dist/development/src/schema/CustomTypesProvider.js +32 -0
- package/dist/development/src/schema/CustomTypesProvider.js.map +1 -1
- package/dist/development/src/schema/EntityTypeProvider.cjs.map +1 -1
- package/dist/development/src/schema/EntityTypeProvider.js.map +1 -1
- package/dist/development/src/schema/EnumsProvider.cjs.map +1 -1
- package/dist/development/src/schema/EnumsProvider.js.map +1 -1
- package/dist/development/src/schema/FieldAccessVisitor.cjs.map +1 -1
- package/dist/development/src/schema/FieldAccessVisitor.js.map +1 -1
- package/dist/development/src/schema/GraphQlSchemaBuilder.cjs.map +1 -1
- package/dist/development/src/schema/GraphQlSchemaBuilder.js.map +1 -1
- package/dist/development/src/schema/GraphQlSchemaBuilderFactory.cjs.map +1 -1
- package/dist/development/src/schema/GraphQlSchemaBuilderFactory.js.map +1 -1
- package/dist/development/src/schema/MutationProvider.cjs.map +1 -1
- package/dist/development/src/schema/MutationProvider.js.map +1 -1
- package/dist/development/src/schema/OperationExtension.cjs.map +1 -1
- package/dist/development/src/schema/OperationExtension.js.map +1 -1
- package/dist/development/src/schema/OrderByTypeProvider.cjs.map +1 -1
- package/dist/development/src/schema/OrderByTypeProvider.js.map +1 -1
- package/dist/development/src/schema/PaginatedFieldConfigFactory.cjs.map +1 -1
- package/dist/development/src/schema/PaginatedFieldConfigFactory.js.map +1 -1
- package/dist/development/src/schema/QueryProvider.cjs.map +1 -1
- package/dist/development/src/schema/QueryProvider.js.map +1 -1
- package/dist/development/src/schema/RefreshViewMutationProvider.cjs.map +1 -1
- package/dist/development/src/schema/RefreshViewMutationProvider.js.map +1 -1
- package/dist/development/src/schema/ValidationQueriesProvider.cjs.map +1 -1
- package/dist/development/src/schema/ValidationQueriesProvider.js.map +1 -1
- package/dist/development/src/schema/WhereTypeProvider.cjs.map +1 -1
- package/dist/development/src/schema/WhereTypeProvider.js.map +1 -1
- package/dist/development/src/schema/entities/FieldArgsVisitor.cjs.map +1 -1
- package/dist/development/src/schema/entities/FieldArgsVisitor.js.map +1 -1
- package/dist/development/src/schema/entities/FieldTypeVisitor.cjs.map +1 -1
- package/dist/development/src/schema/entities/FieldTypeVisitor.js.map +1 -1
- package/dist/development/src/schema/mutations/ConnectOrCreateRelationInputProvider.cjs.map +1 -1
- package/dist/development/src/schema/mutations/ConnectOrCreateRelationInputProvider.js.map +1 -1
- package/dist/development/src/schema/mutations/CreateEntityInputFieldVisitor.cjs.map +1 -1
- package/dist/development/src/schema/mutations/CreateEntityInputFieldVisitor.js.map +1 -1
- package/dist/development/src/schema/mutations/CreateEntityRelationAllowedOperationsVisitor.cjs.map +1 -1
- package/dist/development/src/schema/mutations/CreateEntityRelationAllowedOperationsVisitor.js.map +1 -1
- package/dist/development/src/schema/mutations/CreateEntityRelationInputFieldVisitor.cjs.map +1 -1
- package/dist/development/src/schema/mutations/CreateEntityRelationInputFieldVisitor.js.map +1 -1
- package/dist/development/src/schema/mutations/CreateEntityRelationInputProvider.cjs.map +1 -1
- package/dist/development/src/schema/mutations/CreateEntityRelationInputProvider.js.map +1 -1
- package/dist/development/src/schema/mutations/EntityInputProvider.cjs.map +1 -1
- package/dist/development/src/schema/mutations/EntityInputProvider.js.map +1 -1
- package/dist/development/src/schema/mutations/UpdateEntityInputFieldVisitor.cjs.map +1 -1
- package/dist/development/src/schema/mutations/UpdateEntityInputFieldVisitor.js.map +1 -1
- package/dist/development/src/schema/mutations/UpdateEntityRelationAllowedOperationsVisitor.cjs.map +1 -1
- package/dist/development/src/schema/mutations/UpdateEntityRelationAllowedOperationsVisitor.js.map +1 -1
- package/dist/development/src/schema/mutations/UpdateEntityRelationInputFieldVisitor.cjs.map +1 -1
- package/dist/development/src/schema/mutations/UpdateEntityRelationInputFieldVisitor.js.map +1 -1
- package/dist/development/src/schema/mutations/UpdateEntityRelationInputProvider.cjs.map +1 -1
- package/dist/development/src/schema/mutations/UpdateEntityRelationInputProvider.js.map +1 -1
- package/dist/development/src/schema/utils.cjs.map +1 -1
- package/dist/development/src/schema/utils.js.map +1 -1
- package/dist/development/src/utils/accessor.cjs.map +1 -1
- package/dist/development/src/utils/accessor.js.map +1 -1
- package/dist/development/src/utils/paginationUtils.cjs.map +1 -1
- package/dist/development/src/utils/paginationUtils.js.map +1 -1
- package/dist/development/src/utils/singletonFactory.cjs.map +1 -1
- package/dist/development/src/utils/singletonFactory.js.map +1 -1
- package/dist/production/src/ExecutionContainer.cjs +7 -4
- package/dist/production/src/ExecutionContainer.cjs.map +1 -1
- package/dist/production/src/ExecutionContainer.js +7 -4
- package/dist/production/src/ExecutionContainer.js.map +1 -1
- package/dist/production/src/acl/EvaluatedPredicateReplacer.cjs.map +1 -1
- package/dist/production/src/acl/EvaluatedPredicateReplacer.js.map +1 -1
- package/dist/production/src/acl/PermissionFactory.cjs.map +1 -1
- package/dist/production/src/acl/PermissionFactory.js.map +1 -1
- package/dist/production/src/acl/PredicateFactory.cjs.map +1 -1
- package/dist/production/src/acl/PredicateFactory.js.map +1 -1
- package/dist/production/src/acl/PredicatesInjector.cjs.map +1 -1
- package/dist/production/src/acl/PredicatesInjector.js.map +1 -1
- package/dist/production/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducer.cjs.map +1 -1
- package/dist/production/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducer.js.map +1 -1
- package/dist/production/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducerExecutionHandler.cjs.map +1 -1
- package/dist/production/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducerExecutionHandler.js.map +1 -1
- package/dist/production/src/extensions/hasManyToHasOneReducer/HasManyToHasOneRelationReducerVisitor.cjs.map +1 -1
- package/dist/production/src/extensions/hasManyToHasOneReducer/HasManyToHasOneRelationReducerVisitor.js.map +1 -1
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyCountVisitor.cjs.map +1 -1
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyCountVisitor.js.map +1 -1
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyExecutionHandler.cjs.map +1 -1
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyExecutionHandler.js.map +1 -1
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyFieldProvider.cjs.map +1 -1
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyFieldProvider.js.map +1 -1
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyFieldProviderVisitor.cjs.map +1 -1
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyFieldProviderVisitor.js.map +1 -1
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyNodesVisitor.cjs.map +1 -1
- package/dist/production/src/extensions/paginatedHasMany/PaginatedHasManyNodesVisitor.js.map +1 -1
- package/dist/production/src/input-validation/EntityRulesResolver.cjs.map +1 -1
- package/dist/production/src/input-validation/EntityRulesResolver.js.map +1 -1
- package/dist/production/src/input-validation/JsonSchemaValidator.cjs +208 -0
- package/dist/production/src/input-validation/JsonSchemaValidator.cjs.map +1 -0
- package/dist/production/src/input-validation/JsonSchemaValidator.js +208 -0
- package/dist/production/src/input-validation/JsonSchemaValidator.js.map +1 -0
- package/dist/production/src/input-validation/QueryAstFactory.cjs.map +1 -1
- package/dist/production/src/input-validation/QueryAstFactory.js.map +1 -1
- package/dist/production/src/input-validation/ValidationContext.cjs.map +1 -1
- package/dist/production/src/input-validation/ValidationContext.js.map +1 -1
- package/dist/production/src/input-validation/ValidationDataSelector.cjs.map +1 -1
- package/dist/production/src/input-validation/ValidationDataSelector.js.map +1 -1
- package/dist/production/src/input-validation/ValidationEvaluation.cjs.map +1 -1
- package/dist/production/src/input-validation/ValidationEvaluation.js.map +1 -1
- package/dist/production/src/input-validation/dependencies/DependencyCollector.cjs.map +1 -1
- package/dist/production/src/input-validation/dependencies/DependencyCollector.js.map +1 -1
- package/dist/production/src/input-validation/dependencies/DependencyMerger.cjs.map +1 -1
- package/dist/production/src/input-validation/dependencies/DependencyMerger.js.map +1 -1
- package/dist/production/src/input-validation/preValidation/CreateInputPreValidationProcessor.cjs.map +1 -1
- package/dist/production/src/input-validation/preValidation/CreateInputPreValidationProcessor.js.map +1 -1
- package/dist/production/src/input-validation/preValidation/InputPreValidator.cjs +38 -2
- package/dist/production/src/input-validation/preValidation/InputPreValidator.cjs.map +1 -1
- package/dist/production/src/input-validation/preValidation/InputPreValidator.js +38 -2
- package/dist/production/src/input-validation/preValidation/InputPreValidator.js.map +1 -1
- package/dist/production/src/input-validation/preValidation/UpdateInputPreValidationProcessor.cjs.map +1 -1
- package/dist/production/src/input-validation/preValidation/UpdateInputPreValidationProcessor.js.map +1 -1
- package/dist/production/src/inputProcessing/CreateInputVisitor.cjs.map +1 -1
- package/dist/production/src/inputProcessing/CreateInputVisitor.js.map +1 -1
- package/dist/production/src/inputProcessing/ObjectNode.cjs.map +1 -1
- package/dist/production/src/inputProcessing/ObjectNode.js.map +1 -1
- package/dist/production/src/inputProcessing/UniqueWhereExpander.cjs.map +1 -1
- package/dist/production/src/inputProcessing/UniqueWhereExpander.js.map +1 -1
- package/dist/production/src/inputProcessing/UpdateInputVisitor.cjs.map +1 -1
- package/dist/production/src/inputProcessing/UpdateInputVisitor.js.map +1 -1
- package/dist/production/src/introspection/IntrospectionSchemaDefinitionFactory.cjs.map +1 -1
- package/dist/production/src/introspection/IntrospectionSchemaDefinitionFactory.js.map +1 -1
- package/dist/production/src/introspection/IntrospectionSchemaFactory.cjs.map +1 -1
- package/dist/production/src/introspection/IntrospectionSchemaFactory.js.map +1 -1
- package/dist/production/src/mapper/ErrorUtils.cjs.map +1 -1
- package/dist/production/src/mapper/ErrorUtils.js.map +1 -1
- package/dist/production/src/mapper/EventManager.cjs.map +1 -1
- package/dist/production/src/mapper/EventManager.js.map +1 -1
- package/dist/production/src/mapper/JunctionTableManager.cjs.map +1 -1
- package/dist/production/src/mapper/JunctionTableManager.js.map +1 -1
- package/dist/production/src/mapper/Mapper.cjs +8 -5
- package/dist/production/src/mapper/Mapper.cjs.map +1 -1
- package/dist/production/src/mapper/Mapper.js +8 -5
- package/dist/production/src/mapper/Mapper.js.map +1 -1
- package/dist/production/src/mapper/MapperFactory.cjs +7 -4
- package/dist/production/src/mapper/MapperFactory.cjs.map +1 -1
- package/dist/production/src/mapper/MapperFactory.js +7 -4
- package/dist/production/src/mapper/MapperFactory.js.map +1 -1
- package/dist/production/src/mapper/MutationProcessorHelper.cjs.map +1 -1
- package/dist/production/src/mapper/MutationProcessorHelper.js.map +1 -1
- package/dist/production/src/mapper/Result.cjs.map +1 -1
- package/dist/production/src/mapper/Result.js.map +1 -1
- package/dist/production/src/mapper/delete/DeleteExecutor.cjs.map +1 -1
- package/dist/production/src/mapper/delete/DeleteExecutor.js.map +1 -1
- package/dist/production/src/mapper/delete/DeleteState.cjs.map +1 -1
- package/dist/production/src/mapper/delete/DeleteState.js.map +1 -1
- package/dist/production/src/mapper/insert/InsertBuilder.cjs.map +1 -1
- package/dist/production/src/mapper/insert/InsertBuilder.js.map +1 -1
- package/dist/production/src/mapper/insert/InsertBuilderFactory.cjs.map +1 -1
- package/dist/production/src/mapper/insert/InsertBuilderFactory.js.map +1 -1
- package/dist/production/src/mapper/insert/Inserter.cjs.map +1 -1
- package/dist/production/src/mapper/insert/Inserter.js.map +1 -1
- package/dist/production/src/mapper/insert/SqlCreateInputProcessor.cjs.map +1 -1
- package/dist/production/src/mapper/insert/SqlCreateInputProcessor.js.map +1 -1
- package/dist/production/src/mapper/insert/relations/ManyHasManyCreateInputProcessor.cjs.map +1 -1
- package/dist/production/src/mapper/insert/relations/ManyHasManyCreateInputProcessor.js.map +1 -1
- package/dist/production/src/mapper/insert/relations/ManyHasOneCreateInputProcessor.cjs.map +1 -1
- package/dist/production/src/mapper/insert/relations/ManyHasOneCreateInputProcessor.js.map +1 -1
- package/dist/production/src/mapper/insert/relations/OneHasManyCreateInputProcessor.cjs.map +1 -1
- package/dist/production/src/mapper/insert/relations/OneHasManyCreateInputProcessor.js.map +1 -1
- package/dist/production/src/mapper/insert/relations/OneHasOneInverseCreateInputProcessor.cjs.map +1 -1
- package/dist/production/src/mapper/insert/relations/OneHasOneInverseCreateInputProcessor.js.map +1 -1
- package/dist/production/src/mapper/insert/relations/OneHasOneOwningCreateInputProcessor.cjs.map +1 -1
- package/dist/production/src/mapper/insert/relations/OneHasOneOwningCreateInputProcessor.js.map +1 -1
- package/dist/production/src/mapper/select/ConditionBuilder.cjs +10 -1
- package/dist/production/src/mapper/select/ConditionBuilder.cjs.map +1 -1
- package/dist/production/src/mapper/select/ConditionBuilder.js +10 -1
- package/dist/production/src/mapper/select/ConditionBuilder.js.map +1 -1
- package/dist/production/src/mapper/select/JoinBuilder.cjs.map +1 -1
- package/dist/production/src/mapper/select/JoinBuilder.js.map +1 -1
- package/dist/production/src/mapper/select/JoinVisitor.cjs.map +1 -1
- package/dist/production/src/mapper/select/JoinVisitor.js.map +1 -1
- package/dist/production/src/mapper/select/OrderByBuilder.cjs.map +1 -1
- package/dist/production/src/mapper/select/OrderByBuilder.js.map +1 -1
- package/dist/production/src/mapper/select/OrderByHelper.cjs.map +1 -1
- package/dist/production/src/mapper/select/OrderByHelper.js.map +1 -1
- package/dist/production/src/mapper/select/RelationFetcher.cjs +2 -2
- package/dist/production/src/mapper/select/RelationFetcher.cjs.map +1 -1
- package/dist/production/src/mapper/select/RelationFetcher.js +2 -2
- package/dist/production/src/mapper/select/RelationFetcher.js.map +1 -1
- package/dist/production/src/mapper/select/SelectBuilder.cjs.map +1 -1
- package/dist/production/src/mapper/select/SelectBuilder.js.map +1 -1
- package/dist/production/src/mapper/select/SelectHydrator.cjs +39 -19
- package/dist/production/src/mapper/select/SelectHydrator.cjs.map +1 -1
- package/dist/production/src/mapper/select/SelectHydrator.js +39 -19
- package/dist/production/src/mapper/select/SelectHydrator.js.map +1 -1
- package/dist/production/src/mapper/select/WhereBuilder.cjs.map +1 -1
- package/dist/production/src/mapper/select/WhereBuilder.js.map +1 -1
- package/dist/production/src/mapper/select/handlers/FieldsVisitor.cjs +9 -1
- package/dist/production/src/mapper/select/handlers/FieldsVisitor.cjs.map +1 -1
- package/dist/production/src/mapper/select/handlers/FieldsVisitor.js +9 -1
- package/dist/production/src/mapper/select/handlers/FieldsVisitor.js.map +1 -1
- package/dist/production/src/mapper/select/handlers/FieldsVisitorFactory.cjs.map +1 -1
- package/dist/production/src/mapper/select/handlers/FieldsVisitorFactory.js.map +1 -1
- package/dist/production/src/mapper/select/handlers/MetaHandler.cjs.map +1 -1
- package/dist/production/src/mapper/select/handlers/MetaHandler.js.map +1 -1
- package/dist/production/src/mapper/select/optimizer/ConditionOptimizer.cjs.map +1 -1
- package/dist/production/src/mapper/select/optimizer/ConditionOptimizer.js.map +1 -1
- package/dist/production/src/mapper/select/optimizer/WhereOptimizer.cjs.map +1 -1
- package/dist/production/src/mapper/select/optimizer/WhereOptimizer.js.map +1 -1
- package/dist/production/src/mapper/update/SqlUpdateInputProcessor.cjs.map +1 -1
- package/dist/production/src/mapper/update/SqlUpdateInputProcessor.js.map +1 -1
- package/dist/production/src/mapper/update/UpdateBuilder.cjs.map +1 -1
- package/dist/production/src/mapper/update/UpdateBuilder.js.map +1 -1
- package/dist/production/src/mapper/update/UpdateBuilderFactory.cjs.map +1 -1
- package/dist/production/src/mapper/update/UpdateBuilderFactory.js.map +1 -1
- package/dist/production/src/mapper/update/Updater.cjs.map +1 -1
- package/dist/production/src/mapper/update/Updater.js.map +1 -1
- package/dist/production/src/mapper/update/relations/ManyHasManyUpdateInputProcessor.cjs.map +1 -1
- package/dist/production/src/mapper/update/relations/ManyHasManyUpdateInputProcessor.js.map +1 -1
- package/dist/production/src/mapper/update/relations/ManyHasOneUpdateInputProcessor.cjs.map +1 -1
- package/dist/production/src/mapper/update/relations/ManyHasOneUpdateInputProcessor.js.map +1 -1
- package/dist/production/src/mapper/update/relations/OneHasManyUpdateInputProcessor.cjs.map +1 -1
- package/dist/production/src/mapper/update/relations/OneHasManyUpdateInputProcessor.js.map +1 -1
- package/dist/production/src/mapper/update/relations/OneHasOneInverseUpdateInputProcessor.cjs.map +1 -1
- package/dist/production/src/mapper/update/relations/OneHasOneInverseUpdateInputProcessor.js.map +1 -1
- package/dist/production/src/mapper/update/relations/OneHasOneOwningUpdateInputProcessor.cjs.map +1 -1
- package/dist/production/src/mapper/update/relations/OneHasOneOwningUpdateInputProcessor.js.map +1 -1
- package/dist/production/src/resolvers/GraphQlQueryAstFactory.cjs.map +1 -1
- package/dist/production/src/resolvers/GraphQlQueryAstFactory.js.map +1 -1
- package/dist/production/src/resolvers/MutationResolver.cjs +49 -35
- package/dist/production/src/resolvers/MutationResolver.cjs.map +1 -1
- package/dist/production/src/resolvers/MutationResolver.js +50 -36
- package/dist/production/src/resolvers/MutationResolver.js.map +1 -1
- package/dist/production/src/resolvers/ReadHelpers.cjs.map +1 -1
- package/dist/production/src/resolvers/ReadHelpers.js.map +1 -1
- package/dist/production/src/resolvers/ReadResolver.cjs.map +1 -1
- package/dist/production/src/resolvers/ReadResolver.js.map +1 -1
- package/dist/production/src/resolvers/RefreshViewResolver.cjs.map +1 -1
- package/dist/production/src/resolvers/RefreshViewResolver.js.map +1 -1
- package/dist/production/src/resolvers/ValidationResolver.cjs.map +1 -1
- package/dist/production/src/resolvers/ValidationResolver.js.map +1 -1
- package/dist/production/src/schema/ColumnTypeResolver.cjs +2 -0
- package/dist/production/src/schema/ColumnTypeResolver.cjs.map +1 -1
- package/dist/production/src/schema/ColumnTypeResolver.js +2 -0
- package/dist/production/src/schema/ColumnTypeResolver.js.map +1 -1
- package/dist/production/src/schema/ConditionTypeProvider.cjs +2 -0
- package/dist/production/src/schema/ConditionTypeProvider.cjs.map +1 -1
- package/dist/production/src/schema/ConditionTypeProvider.js +2 -0
- package/dist/production/src/schema/ConditionTypeProvider.js.map +1 -1
- package/dist/production/src/schema/CustomTypesProvider.cjs +32 -0
- package/dist/production/src/schema/CustomTypesProvider.cjs.map +1 -1
- package/dist/production/src/schema/CustomTypesProvider.js +32 -0
- package/dist/production/src/schema/CustomTypesProvider.js.map +1 -1
- package/dist/production/src/schema/EntityTypeProvider.cjs.map +1 -1
- package/dist/production/src/schema/EntityTypeProvider.js.map +1 -1
- package/dist/production/src/schema/EnumsProvider.cjs.map +1 -1
- package/dist/production/src/schema/EnumsProvider.js.map +1 -1
- package/dist/production/src/schema/FieldAccessVisitor.cjs.map +1 -1
- package/dist/production/src/schema/FieldAccessVisitor.js.map +1 -1
- package/dist/production/src/schema/GraphQlSchemaBuilder.cjs.map +1 -1
- package/dist/production/src/schema/GraphQlSchemaBuilder.js.map +1 -1
- package/dist/production/src/schema/GraphQlSchemaBuilderFactory.cjs.map +1 -1
- package/dist/production/src/schema/GraphQlSchemaBuilderFactory.js.map +1 -1
- package/dist/production/src/schema/MutationProvider.cjs.map +1 -1
- package/dist/production/src/schema/MutationProvider.js.map +1 -1
- package/dist/production/src/schema/OperationExtension.cjs.map +1 -1
- package/dist/production/src/schema/OperationExtension.js.map +1 -1
- package/dist/production/src/schema/OrderByTypeProvider.cjs.map +1 -1
- package/dist/production/src/schema/OrderByTypeProvider.js.map +1 -1
- package/dist/production/src/schema/PaginatedFieldConfigFactory.cjs.map +1 -1
- package/dist/production/src/schema/PaginatedFieldConfigFactory.js.map +1 -1
- package/dist/production/src/schema/QueryProvider.cjs.map +1 -1
- package/dist/production/src/schema/QueryProvider.js.map +1 -1
- package/dist/production/src/schema/RefreshViewMutationProvider.cjs.map +1 -1
- package/dist/production/src/schema/RefreshViewMutationProvider.js.map +1 -1
- package/dist/production/src/schema/ValidationQueriesProvider.cjs.map +1 -1
- package/dist/production/src/schema/ValidationQueriesProvider.js.map +1 -1
- package/dist/production/src/schema/WhereTypeProvider.cjs.map +1 -1
- package/dist/production/src/schema/WhereTypeProvider.js.map +1 -1
- package/dist/production/src/schema/entities/FieldArgsVisitor.cjs.map +1 -1
- package/dist/production/src/schema/entities/FieldArgsVisitor.js.map +1 -1
- package/dist/production/src/schema/entities/FieldTypeVisitor.cjs.map +1 -1
- package/dist/production/src/schema/entities/FieldTypeVisitor.js.map +1 -1
- package/dist/production/src/schema/mutations/ConnectOrCreateRelationInputProvider.cjs.map +1 -1
- package/dist/production/src/schema/mutations/ConnectOrCreateRelationInputProvider.js.map +1 -1
- package/dist/production/src/schema/mutations/CreateEntityInputFieldVisitor.cjs.map +1 -1
- package/dist/production/src/schema/mutations/CreateEntityInputFieldVisitor.js.map +1 -1
- package/dist/production/src/schema/mutations/CreateEntityRelationAllowedOperationsVisitor.cjs.map +1 -1
- package/dist/production/src/schema/mutations/CreateEntityRelationAllowedOperationsVisitor.js.map +1 -1
- package/dist/production/src/schema/mutations/CreateEntityRelationInputFieldVisitor.cjs.map +1 -1
- package/dist/production/src/schema/mutations/CreateEntityRelationInputFieldVisitor.js.map +1 -1
- package/dist/production/src/schema/mutations/CreateEntityRelationInputProvider.cjs.map +1 -1
- package/dist/production/src/schema/mutations/CreateEntityRelationInputProvider.js.map +1 -1
- package/dist/production/src/schema/mutations/EntityInputProvider.cjs.map +1 -1
- package/dist/production/src/schema/mutations/EntityInputProvider.js.map +1 -1
- package/dist/production/src/schema/mutations/UpdateEntityInputFieldVisitor.cjs.map +1 -1
- package/dist/production/src/schema/mutations/UpdateEntityInputFieldVisitor.js.map +1 -1
- package/dist/production/src/schema/mutations/UpdateEntityRelationAllowedOperationsVisitor.cjs.map +1 -1
- package/dist/production/src/schema/mutations/UpdateEntityRelationAllowedOperationsVisitor.js.map +1 -1
- package/dist/production/src/schema/mutations/UpdateEntityRelationInputFieldVisitor.cjs.map +1 -1
- package/dist/production/src/schema/mutations/UpdateEntityRelationInputFieldVisitor.js.map +1 -1
- package/dist/production/src/schema/mutations/UpdateEntityRelationInputProvider.cjs.map +1 -1
- package/dist/production/src/schema/mutations/UpdateEntityRelationInputProvider.js.map +1 -1
- package/dist/production/src/schema/utils.cjs.map +1 -1
- package/dist/production/src/schema/utils.js.map +1 -1
- package/dist/production/src/utils/accessor.cjs.map +1 -1
- package/dist/production/src/utils/accessor.js.map +1 -1
- package/dist/production/src/utils/paginationUtils.cjs.map +1 -1
- package/dist/production/src/utils/paginationUtils.js.map +1 -1
- package/dist/production/src/utils/singletonFactory.cjs.map +1 -1
- package/dist/production/src/utils/singletonFactory.js.map +1 -1
- package/dist/tests/cases/integration/graphQlRequests/insert/memoryBudget.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/insert/memoryBudget.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/insert/numericColumn.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/insert/numericColumn.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/filter/numericFilter.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/filter/numericFilter.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/filter/similarQuery.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/filter/similarQuery.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/formatting/numericFormat.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/formatting/numericFormat.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/query/formatting/numericList.test.d.ts +2 -0
- package/dist/tests/cases/integration/graphQlRequests/query/formatting/numericList.test.d.ts.map +1 -0
- package/dist/tests/cases/integration/graphQlRequests/validation/utils.d.ts +1 -1
- package/dist/tests/cases/integration/graphQlRequests/validation/utils.d.ts.map +1 -1
- package/dist/tests/cases/integration/graphQlSchema/model.d.ts +1 -1
- package/dist/tests/cases/unit/decimalType.test.d.ts +2 -0
- package/dist/tests/cases/unit/decimalType.test.d.ts.map +1 -0
- package/dist/tests/cases/unit/jsonSchemaValidator.test.d.ts +2 -0
- package/dist/tests/cases/unit/jsonSchemaValidator.test.d.ts.map +1 -0
- package/dist/tests/src/assert.d.ts.map +1 -1
- package/dist/tests/src/tags.d.ts.map +1 -1
- package/dist/tests/src/test.d.ts +4 -1
- package/dist/tests/src/test.d.ts.map +1 -1
- package/dist/tests/src/testGraphql.d.ts.map +1 -1
- package/dist/tests/src/testUuid.d.ts.map +1 -1
- package/dist/tests/tsconfig.tsbuildinfo +1 -1
- package/dist/types/ExecutionContainer.d.ts +14 -13
- package/dist/types/ExecutionContainer.d.ts.map +1 -1
- package/dist/types/acl/Authorizator.d.ts.map +1 -1
- package/dist/types/acl/EvaluatedPredicateReplacer.d.ts.map +1 -1
- package/dist/types/acl/PermissionFactory.d.ts.map +1 -1
- package/dist/types/acl/PredicateFactory.d.ts +1 -1
- package/dist/types/acl/PredicateFactory.d.ts.map +1 -1
- package/dist/types/acl/PredicatesInjector.d.ts +1 -1
- package/dist/types/acl/PredicatesInjector.d.ts.map +1 -1
- package/dist/types/acl/VariableInjector.d.ts.map +1 -1
- package/dist/types/acl/VariableUtils.d.ts.map +1 -1
- package/dist/types/acl/index.d.ts +6 -6
- package/dist/types/acl/index.d.ts.map +1 -1
- package/dist/types/exception.d.ts.map +1 -1
- package/dist/types/extensions/hasManyToHasOneReducer/HasManyToHasOneReducer.d.ts +2 -2
- package/dist/types/extensions/hasManyToHasOneReducer/HasManyToHasOneReducer.d.ts.map +1 -1
- package/dist/types/extensions/hasManyToHasOneReducer/HasManyToHasOneReducerExecutionHandler.d.ts +3 -3
- package/dist/types/extensions/hasManyToHasOneReducer/HasManyToHasOneReducerExecutionHandler.d.ts.map +1 -1
- package/dist/types/extensions/hasManyToHasOneReducer/HasManyToHasOneRelationReducerVisitor.d.ts +3 -3
- package/dist/types/extensions/hasManyToHasOneReducer/HasManyToHasOneRelationReducerVisitor.d.ts.map +1 -1
- package/dist/types/extensions/hasManyToHasOneReducer/index.d.ts +3 -3
- package/dist/types/extensions/hasManyToHasOneReducer/index.d.ts.map +1 -1
- package/dist/types/extensions/index.d.ts +2 -2
- package/dist/types/extensions/index.d.ts.map +1 -1
- package/dist/types/extensions/paginatedHasMany/PaginatedHasManyCountVisitor.d.ts +2 -2
- package/dist/types/extensions/paginatedHasMany/PaginatedHasManyCountVisitor.d.ts.map +1 -1
- package/dist/types/extensions/paginatedHasMany/PaginatedHasManyExecutionHandler.d.ts +2 -2
- package/dist/types/extensions/paginatedHasMany/PaginatedHasManyExecutionHandler.d.ts.map +1 -1
- package/dist/types/extensions/paginatedHasMany/PaginatedHasManyFieldProvider.d.ts +2 -2
- package/dist/types/extensions/paginatedHasMany/PaginatedHasManyFieldProvider.d.ts.map +1 -1
- package/dist/types/extensions/paginatedHasMany/PaginatedHasManyFieldProviderVisitor.d.ts +2 -2
- package/dist/types/extensions/paginatedHasMany/PaginatedHasManyFieldProviderVisitor.d.ts.map +1 -1
- package/dist/types/extensions/paginatedHasMany/PaginatedHasManyNodesVisitor.d.ts +2 -2
- package/dist/types/extensions/paginatedHasMany/PaginatedHasManyNodesVisitor.d.ts.map +1 -1
- package/dist/types/index.d.ts +11 -11
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/input-validation/ColumnValueResolver.d.ts.map +1 -1
- package/dist/types/input-validation/EntityRulesResolver.d.ts.map +1 -1
- package/dist/types/input-validation/InputValidator.d.ts +1 -1
- package/dist/types/input-validation/InputValidator.d.ts.map +1 -1
- package/dist/types/input-validation/JsonSchemaValidator.d.ts +25 -0
- package/dist/types/input-validation/JsonSchemaValidator.d.ts.map +1 -0
- package/dist/types/input-validation/QueryAstFactory.d.ts +2 -2
- package/dist/types/input-validation/QueryAstFactory.d.ts.map +1 -1
- package/dist/types/input-validation/ValidationContext.d.ts.map +1 -1
- package/dist/types/input-validation/ValidationDataSelector.d.ts +4 -4
- package/dist/types/input-validation/ValidationDataSelector.d.ts.map +1 -1
- package/dist/types/input-validation/ValidationEvaluation.d.ts +1 -1
- package/dist/types/input-validation/ValidationEvaluation.d.ts.map +1 -1
- package/dist/types/input-validation/ValidationPath.d.ts.map +1 -1
- package/dist/types/input-validation/dependencies/DependencyCollector.d.ts.map +1 -1
- package/dist/types/input-validation/dependencies/DependencyMerger.d.ts +1 -1
- package/dist/types/input-validation/dependencies/DependencyMerger.d.ts.map +1 -1
- package/dist/types/input-validation/dependencies/index.d.ts +2 -2
- package/dist/types/input-validation/dependencies/index.d.ts.map +1 -1
- package/dist/types/input-validation/index.d.ts +12 -11
- package/dist/types/input-validation/index.d.ts.map +1 -1
- package/dist/types/input-validation/preValidation/CreateInputPreValidationProcessor.d.ts +5 -5
- package/dist/types/input-validation/preValidation/CreateInputPreValidationProcessor.d.ts.map +1 -1
- package/dist/types/input-validation/preValidation/InputPreValidator.d.ts +11 -6
- package/dist/types/input-validation/preValidation/InputPreValidator.d.ts.map +1 -1
- package/dist/types/input-validation/preValidation/UpdateInputPreValidationProcessor.d.ts +7 -7
- package/dist/types/input-validation/preValidation/UpdateInputPreValidationProcessor.d.ts.map +1 -1
- package/dist/types/input-validation/preValidation/index.d.ts +3 -3
- package/dist/types/input-validation/preValidation/index.d.ts.map +1 -1
- package/dist/types/inputProcessing/CreateInputProcessor.d.ts +2 -2
- package/dist/types/inputProcessing/CreateInputProcessor.d.ts.map +1 -1
- package/dist/types/inputProcessing/CreateInputVisitor.d.ts +2 -2
- package/dist/types/inputProcessing/CreateInputVisitor.d.ts.map +1 -1
- package/dist/types/inputProcessing/FieldNode.d.ts.map +1 -1
- package/dist/types/inputProcessing/ObjectNode.d.ts +1 -1
- package/dist/types/inputProcessing/ObjectNode.d.ts.map +1 -1
- package/dist/types/inputProcessing/UniqueWhereExpander.d.ts +2 -2
- package/dist/types/inputProcessing/UniqueWhereExpander.d.ts.map +1 -1
- package/dist/types/inputProcessing/UpdateInputProcessor.d.ts +2 -2
- package/dist/types/inputProcessing/UpdateInputProcessor.d.ts.map +1 -1
- package/dist/types/inputProcessing/UpdateInputVisitor.d.ts +2 -2
- package/dist/types/inputProcessing/UpdateInputVisitor.d.ts.map +1 -1
- package/dist/types/inputProcessing/index.d.ts +7 -7
- package/dist/types/inputProcessing/index.d.ts.map +1 -1
- package/dist/types/introspection/IntrospectionSchemaDefinitionFactory.d.ts +1 -1
- package/dist/types/introspection/IntrospectionSchemaDefinitionFactory.d.ts.map +1 -1
- package/dist/types/introspection/IntrospectionSchemaFactory.d.ts +3 -3
- package/dist/types/introspection/IntrospectionSchemaFactory.d.ts.map +1 -1
- package/dist/types/introspection/index.d.ts +4 -4
- package/dist/types/introspection/index.d.ts.map +1 -1
- package/dist/types/introspection/introspection.schema.d.ts.map +1 -1
- package/dist/types/mapper/CheckedPrimary.d.ts.map +1 -1
- package/dist/types/mapper/ColumnValue.d.ts.map +1 -1
- package/dist/types/mapper/Constraints.d.ts.map +1 -1
- package/dist/types/mapper/ErrorUtils.d.ts +1 -1
- package/dist/types/mapper/ErrorUtils.d.ts.map +1 -1
- package/dist/types/mapper/EventManager.d.ts +11 -11
- package/dist/types/mapper/EventManager.d.ts.map +1 -1
- package/dist/types/mapper/JunctionTableManager.d.ts +4 -4
- package/dist/types/mapper/JunctionTableManager.d.ts.map +1 -1
- package/dist/types/mapper/Mapper.d.ts +17 -14
- package/dist/types/mapper/Mapper.d.ts.map +1 -1
- package/dist/types/mapper/MapperFactory.d.ts +11 -10
- package/dist/types/mapper/MapperFactory.d.ts.map +1 -1
- package/dist/types/mapper/MutationProcessorHelper.d.ts +1 -1
- package/dist/types/mapper/MutationProcessorHelper.d.ts.map +1 -1
- package/dist/types/mapper/Result.d.ts +1 -1
- package/dist/types/mapper/Result.d.ts.map +1 -1
- package/dist/types/mapper/delete/DeleteExecutor.d.ts +6 -6
- package/dist/types/mapper/delete/DeleteExecutor.d.ts.map +1 -1
- package/dist/types/mapper/delete/DeleteState.d.ts +2 -2
- package/dist/types/mapper/delete/DeleteState.d.ts.map +1 -1
- package/dist/types/mapper/delete/DeletedEntitiesStorage.d.ts.map +1 -1
- package/dist/types/mapper/delete/helpers.d.ts +1 -1
- package/dist/types/mapper/delete/helpers.d.ts.map +1 -1
- package/dist/types/mapper/delete/index.d.ts +2 -2
- package/dist/types/mapper/delete/index.d.ts.map +1 -1
- package/dist/types/mapper/index.d.ts +15 -15
- package/dist/types/mapper/index.d.ts.map +1 -1
- package/dist/types/mapper/insert/InsertBuilder.d.ts +4 -4
- package/dist/types/mapper/insert/InsertBuilder.d.ts.map +1 -1
- package/dist/types/mapper/insert/InsertBuilderFactory.d.ts +3 -3
- package/dist/types/mapper/insert/InsertBuilderFactory.d.ts.map +1 -1
- package/dist/types/mapper/insert/Inserter.d.ts +5 -5
- package/dist/types/mapper/insert/Inserter.d.ts.map +1 -1
- package/dist/types/mapper/insert/SqlCreateInputProcessor.d.ts +4 -4
- package/dist/types/mapper/insert/SqlCreateInputProcessor.d.ts.map +1 -1
- package/dist/types/mapper/insert/index.d.ts +4 -4
- package/dist/types/mapper/insert/index.d.ts.map +1 -1
- package/dist/types/mapper/insert/relations/ManyHasManyCreateInputProcessor.d.ts +7 -7
- package/dist/types/mapper/insert/relations/ManyHasManyCreateInputProcessor.d.ts.map +1 -1
- package/dist/types/mapper/insert/relations/ManyHasOneCreateInputProcessor.d.ts +9 -9
- package/dist/types/mapper/insert/relations/ManyHasOneCreateInputProcessor.d.ts.map +1 -1
- package/dist/types/mapper/insert/relations/OneHasManyCreateInputProcessor.d.ts +8 -8
- package/dist/types/mapper/insert/relations/OneHasManyCreateInputProcessor.d.ts.map +1 -1
- package/dist/types/mapper/insert/relations/OneHasOneInverseCreateInputProcessor.d.ts +8 -8
- package/dist/types/mapper/insert/relations/OneHasOneInverseCreateInputProcessor.d.ts.map +1 -1
- package/dist/types/mapper/insert/relations/OneHasOneOwningCreateInputProcessor.d.ts +7 -7
- package/dist/types/mapper/insert/relations/OneHasOneOwningCreateInputProcessor.d.ts.map +1 -1
- package/dist/types/mapper/select/ConditionBuilder.d.ts.map +1 -1
- package/dist/types/mapper/select/JoinBuilder.d.ts +1 -1
- package/dist/types/mapper/select/JoinBuilder.d.ts.map +1 -1
- package/dist/types/mapper/select/JoinVisitor.d.ts +1 -1
- package/dist/types/mapper/select/JoinVisitor.d.ts.map +1 -1
- package/dist/types/mapper/select/OrderByBuilder.d.ts +2 -2
- package/dist/types/mapper/select/OrderByBuilder.d.ts.map +1 -1
- package/dist/types/mapper/select/OrderByHelper.d.ts +1 -1
- package/dist/types/mapper/select/OrderByHelper.d.ts.map +1 -1
- package/dist/types/mapper/select/Path.d.ts.map +1 -1
- package/dist/types/mapper/select/RelationFetcher.d.ts +7 -7
- package/dist/types/mapper/select/RelationFetcher.d.ts.map +1 -1
- package/dist/types/mapper/select/SelectBuilder.d.ts +10 -10
- package/dist/types/mapper/select/SelectBuilder.d.ts.map +1 -1
- package/dist/types/mapper/select/SelectBuilderFactory.d.ts +2 -2
- package/dist/types/mapper/select/SelectBuilderFactory.d.ts.map +1 -1
- package/dist/types/mapper/select/SelectExecutionHandler.d.ts +4 -4
- package/dist/types/mapper/select/SelectExecutionHandler.d.ts.map +1 -1
- package/dist/types/mapper/select/SelectHydrator.d.ts +7 -1
- package/dist/types/mapper/select/SelectHydrator.d.ts.map +1 -1
- package/dist/types/mapper/select/WhereBuilder.d.ts +4 -4
- package/dist/types/mapper/select/WhereBuilder.d.ts.map +1 -1
- package/dist/types/mapper/select/handlers/FieldsVisitor.d.ts +4 -4
- package/dist/types/mapper/select/handlers/FieldsVisitor.d.ts.map +1 -1
- package/dist/types/mapper/select/handlers/FieldsVisitorFactory.d.ts +5 -5
- package/dist/types/mapper/select/handlers/FieldsVisitorFactory.d.ts.map +1 -1
- package/dist/types/mapper/select/handlers/MetaHandler.d.ts +3 -3
- package/dist/types/mapper/select/handlers/MetaHandler.d.ts.map +1 -1
- package/dist/types/mapper/select/handlers/index.d.ts +3 -3
- package/dist/types/mapper/select/handlers/index.d.ts.map +1 -1
- package/dist/types/mapper/select/index.d.ts +13 -13
- package/dist/types/mapper/select/index.d.ts.map +1 -1
- package/dist/types/mapper/select/optimizer/ConditionOptimizer.d.ts.map +1 -1
- package/dist/types/mapper/select/optimizer/WhereOptimizer.d.ts +1 -1
- package/dist/types/mapper/select/optimizer/WhereOptimizer.d.ts.map +1 -1
- package/dist/types/mapper/select/optimizer/WhereReplacer.d.ts.map +1 -1
- package/dist/types/mapper/select/optimizer/helpers.d.ts +1 -1
- package/dist/types/mapper/select/optimizer/helpers.d.ts.map +1 -1
- package/dist/types/mapper/types.d.ts +1 -1
- package/dist/types/mapper/types.d.ts.map +1 -1
- package/dist/types/mapper/update/SqlUpdateInputProcessor.d.ts +5 -5
- package/dist/types/mapper/update/SqlUpdateInputProcessor.d.ts.map +1 -1
- package/dist/types/mapper/update/UpdateBuilder.d.ts +4 -4
- package/dist/types/mapper/update/UpdateBuilder.d.ts.map +1 -1
- package/dist/types/mapper/update/UpdateBuilderFactory.d.ts +3 -3
- package/dist/types/mapper/update/UpdateBuilderFactory.d.ts.map +1 -1
- package/dist/types/mapper/update/Updater.d.ts +5 -5
- package/dist/types/mapper/update/Updater.d.ts.map +1 -1
- package/dist/types/mapper/update/index.d.ts +4 -4
- package/dist/types/mapper/update/index.d.ts.map +1 -1
- package/dist/types/mapper/update/relations/ManyHasManyUpdateInputProcessor.d.ts +12 -12
- package/dist/types/mapper/update/relations/ManyHasManyUpdateInputProcessor.d.ts.map +1 -1
- package/dist/types/mapper/update/relations/ManyHasOneUpdateInputProcessor.d.ts +12 -12
- package/dist/types/mapper/update/relations/ManyHasOneUpdateInputProcessor.d.ts.map +1 -1
- package/dist/types/mapper/update/relations/OneHasManyUpdateInputProcessor.d.ts +12 -12
- package/dist/types/mapper/update/relations/OneHasManyUpdateInputProcessor.d.ts.map +1 -1
- package/dist/types/mapper/update/relations/OneHasOneInverseUpdateInputProcessor.d.ts +6 -6
- package/dist/types/mapper/update/relations/OneHasOneInverseUpdateInputProcessor.d.ts.map +1 -1
- package/dist/types/mapper/update/relations/OneHasOneOwningUpdateInputProcessor.d.ts +10 -10
- package/dist/types/mapper/update/relations/OneHasOneOwningUpdateInputProcessor.d.ts.map +1 -1
- package/dist/types/resolvers/GraphQlQueryAstFactory.d.ts +1 -1
- package/dist/types/resolvers/GraphQlQueryAstFactory.d.ts.map +1 -1
- package/dist/types/resolvers/MutationResolver.d.ts +3 -3
- package/dist/types/resolvers/MutationResolver.d.ts.map +1 -1
- package/dist/types/resolvers/ReadHelpers.d.ts +2 -2
- package/dist/types/resolvers/ReadHelpers.d.ts.map +1 -1
- package/dist/types/resolvers/ReadResolver.d.ts +4 -4
- package/dist/types/resolvers/ReadResolver.d.ts.map +1 -1
- package/dist/types/resolvers/RefreshViewResolver.d.ts +1 -1
- package/dist/types/resolvers/RefreshViewResolver.d.ts.map +1 -1
- package/dist/types/resolvers/ValidationResolver.d.ts +2 -2
- package/dist/types/resolvers/ValidationResolver.d.ts.map +1 -1
- package/dist/types/resolvers/index.d.ts +4 -4
- package/dist/types/resolvers/index.d.ts.map +1 -1
- package/dist/types/schema/ColumnTypeResolver.d.ts +2 -2
- package/dist/types/schema/ColumnTypeResolver.d.ts.map +1 -1
- package/dist/types/schema/ConditionTypeProvider.d.ts +1 -1
- package/dist/types/schema/ConditionTypeProvider.d.ts.map +1 -1
- package/dist/types/schema/CustomTypesProvider.d.ts +1 -0
- package/dist/types/schema/CustomTypesProvider.d.ts.map +1 -1
- package/dist/types/schema/EntityTypeProvider.d.ts +5 -5
- package/dist/types/schema/EntityTypeProvider.d.ts.map +1 -1
- package/dist/types/schema/EnumsProvider.d.ts.map +1 -1
- package/dist/types/schema/FieldAccessVisitor.d.ts +1 -1
- package/dist/types/schema/FieldAccessVisitor.d.ts.map +1 -1
- package/dist/types/schema/GraphQlSchemaBuilder.d.ts +6 -6
- package/dist/types/schema/GraphQlSchemaBuilder.d.ts.map +1 -1
- package/dist/types/schema/GraphQlSchemaBuilderFactory.d.ts +30 -30
- package/dist/types/schema/GraphQlSchemaBuilderFactory.d.ts.map +1 -1
- package/dist/types/schema/MutationProvider.d.ts +6 -6
- package/dist/types/schema/MutationProvider.d.ts.map +1 -1
- package/dist/types/schema/OperationExtension.d.ts.map +1 -1
- package/dist/types/schema/OrderByTypeProvider.d.ts +1 -1
- package/dist/types/schema/OrderByTypeProvider.d.ts.map +1 -1
- package/dist/types/schema/PaginatedFieldConfigFactory.d.ts +3 -3
- package/dist/types/schema/PaginatedFieldConfigFactory.d.ts.map +1 -1
- package/dist/types/schema/QueryProvider.d.ts +6 -6
- package/dist/types/schema/QueryProvider.d.ts.map +1 -1
- package/dist/types/schema/RefreshViewMutationProvider.d.ts +2 -2
- package/dist/types/schema/RefreshViewMutationProvider.d.ts.map +1 -1
- package/dist/types/schema/ValidationQueriesProvider.d.ts +4 -4
- package/dist/types/schema/ValidationQueriesProvider.d.ts.map +1 -1
- package/dist/types/schema/WhereTypeProvider.d.ts +3 -3
- package/dist/types/schema/WhereTypeProvider.d.ts.map +1 -1
- package/dist/types/schema/entities/FieldArgsVisitor.d.ts +2 -2
- package/dist/types/schema/entities/FieldArgsVisitor.d.ts.map +1 -1
- package/dist/types/schema/entities/FieldTypeVisitor.d.ts +3 -3
- package/dist/types/schema/entities/FieldTypeVisitor.d.ts.map +1 -1
- package/dist/types/schema/entities/index.d.ts +2 -2
- package/dist/types/schema/entities/index.d.ts.map +1 -1
- package/dist/types/schema/index.d.ts +18 -18
- package/dist/types/schema/index.d.ts.map +1 -1
- package/dist/types/schema/mutations/ConnectOrCreateRelationInputProvider.d.ts +3 -3
- package/dist/types/schema/mutations/ConnectOrCreateRelationInputProvider.d.ts.map +1 -1
- package/dist/types/schema/mutations/CreateEntityInputFieldVisitor.d.ts +3 -3
- package/dist/types/schema/mutations/CreateEntityInputFieldVisitor.d.ts.map +1 -1
- package/dist/types/schema/mutations/CreateEntityRelationAllowedOperationsVisitor.d.ts +1 -1
- package/dist/types/schema/mutations/CreateEntityRelationAllowedOperationsVisitor.d.ts.map +1 -1
- package/dist/types/schema/mutations/CreateEntityRelationInputFieldVisitor.d.ts +5 -5
- package/dist/types/schema/mutations/CreateEntityRelationInputFieldVisitor.d.ts.map +1 -1
- package/dist/types/schema/mutations/CreateEntityRelationInputProvider.d.ts +1 -1
- package/dist/types/schema/mutations/CreateEntityRelationInputProvider.d.ts.map +1 -1
- package/dist/types/schema/mutations/EntityInputProvider.d.ts +1 -1
- package/dist/types/schema/mutations/EntityInputProvider.d.ts.map +1 -1
- package/dist/types/schema/mutations/UpdateEntityInputFieldVisitor.d.ts +4 -4
- package/dist/types/schema/mutations/UpdateEntityInputFieldVisitor.d.ts.map +1 -1
- package/dist/types/schema/mutations/UpdateEntityRelationAllowedOperationsVisitor.d.ts +1 -1
- package/dist/types/schema/mutations/UpdateEntityRelationAllowedOperationsVisitor.d.ts.map +1 -1
- package/dist/types/schema/mutations/UpdateEntityRelationInputFieldVisitor.d.ts +6 -6
- package/dist/types/schema/mutations/UpdateEntityRelationInputFieldVisitor.d.ts.map +1 -1
- package/dist/types/schema/mutations/UpdateEntityRelationInputProvider.d.ts +1 -1
- package/dist/types/schema/mutations/UpdateEntityRelationInputProvider.d.ts.map +1 -1
- package/dist/types/schema/mutations/index.d.ts +9 -9
- package/dist/types/schema/mutations/index.d.ts.map +1 -1
- package/dist/types/schema/utils.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/dist/types/types.d.ts +1 -1
- package/dist/types/types.d.ts.map +1 -1
- package/dist/types/utils/Mutex.d.ts.map +1 -1
- package/dist/types/utils/ResolveInfoUtils.d.ts.map +1 -1
- package/dist/types/utils/accessor.d.ts +1 -1
- package/dist/types/utils/accessor.d.ts.map +1 -1
- package/dist/types/utils/index.d.ts +13 -13
- package/dist/types/utils/index.d.ts.map +1 -1
- package/dist/types/utils/isIt.d.ts.map +1 -1
- package/dist/types/utils/paginationUtils.d.ts +1 -1
- package/dist/types/utils/paginationUtils.d.ts.map +1 -1
- package/dist/types/utils/promises.d.ts.map +1 -1
- package/dist/types/utils/singletonFactory.d.ts.map +1 -1
- package/dist/types/utils/strings.d.ts.map +1 -1
- package/dist/types/utils/tuple.d.ts.map +1 -1
- package/dist/types/utils/uniqueWhereFields.d.ts.map +1 -1
- package/dist/types/utils/viewComputedId.d.ts.map +1 -1
- package/package.json +9 -9
- package/src/ExecutionContainer.ts +27 -14
- package/src/acl/EvaluatedPredicateReplacer.ts +1 -1
- package/src/acl/PermissionFactory.ts +2 -2
- package/src/acl/PredicateFactory.ts +2 -2
- package/src/acl/PredicatesInjector.ts +1 -1
- package/src/acl/index.ts +6 -6
- package/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducer.ts +2 -2
- package/src/extensions/hasManyToHasOneReducer/HasManyToHasOneReducerExecutionHandler.ts +5 -5
- package/src/extensions/hasManyToHasOneReducer/HasManyToHasOneRelationReducerVisitor.ts +4 -4
- package/src/extensions/hasManyToHasOneReducer/index.ts +3 -3
- package/src/extensions/index.ts +2 -2
- package/src/extensions/paginatedHasMany/PaginatedHasManyCountVisitor.ts +2 -2
- package/src/extensions/paginatedHasMany/PaginatedHasManyExecutionHandler.ts +5 -5
- package/src/extensions/paginatedHasMany/PaginatedHasManyFieldProvider.ts +2 -2
- package/src/extensions/paginatedHasMany/PaginatedHasManyFieldProviderVisitor.ts +4 -4
- package/src/extensions/paginatedHasMany/PaginatedHasManyNodesVisitor.ts +2 -2
- package/src/index.ts +11 -11
- package/src/input-validation/EntityRulesResolver.ts +3 -3
- package/src/input-validation/InputValidator.ts +1 -1
- package/src/input-validation/JsonSchemaValidator.ts +257 -0
- package/src/input-validation/QueryAstFactory.ts +2 -2
- package/src/input-validation/ValidationContext.ts +1 -1
- package/src/input-validation/ValidationDataSelector.ts +3 -3
- package/src/input-validation/ValidationEvaluation.ts +1 -1
- package/src/input-validation/dependencies/DependencyCollector.ts +1 -1
- package/src/input-validation/dependencies/DependencyMerger.ts +2 -2
- package/src/input-validation/dependencies/index.ts +2 -2
- package/src/input-validation/index.ts +12 -11
- package/src/input-validation/preValidation/CreateInputPreValidationProcessor.ts +4 -4
- package/src/input-validation/preValidation/InputPreValidator.ts +60 -17
- package/src/input-validation/preValidation/UpdateInputPreValidationProcessor.ts +4 -4
- package/src/input-validation/preValidation/index.ts +3 -3
- package/src/inputProcessing/CreateInputProcessor.ts +2 -2
- package/src/inputProcessing/CreateInputVisitor.ts +4 -4
- package/src/inputProcessing/ObjectNode.ts +1 -1
- package/src/inputProcessing/UniqueWhereExpander.ts +3 -3
- package/src/inputProcessing/UpdateInputProcessor.ts +2 -2
- package/src/inputProcessing/UpdateInputVisitor.ts +4 -4
- package/src/inputProcessing/index.ts +7 -7
- package/src/introspection/IntrospectionSchemaDefinitionFactory.ts +3 -3
- package/src/introspection/IntrospectionSchemaFactory.ts +4 -4
- package/src/introspection/index.ts +4 -4
- package/src/mapper/ErrorUtils.ts +2 -2
- package/src/mapper/EventManager.ts +2 -2
- package/src/mapper/JunctionTableManager.ts +6 -6
- package/src/mapper/Mapper.ts +23 -19
- package/src/mapper/MapperFactory.ts +15 -11
- package/src/mapper/MutationProcessorHelper.ts +1 -1
- package/src/mapper/Result.ts +1 -1
- package/src/mapper/delete/DeleteExecutor.ts +11 -11
- package/src/mapper/delete/DeleteState.ts +3 -3
- package/src/mapper/delete/index.ts +2 -2
- package/src/mapper/index.ts +15 -15
- package/src/mapper/insert/InsertBuilder.ts +5 -5
- package/src/mapper/insert/InsertBuilderFactory.ts +3 -3
- package/src/mapper/insert/Inserter.ts +8 -8
- package/src/mapper/insert/SqlCreateInputProcessor.ts +10 -10
- package/src/mapper/insert/index.ts +4 -4
- package/src/mapper/insert/relations/ManyHasManyCreateInputProcessor.ts +6 -6
- package/src/mapper/insert/relations/ManyHasOneCreateInputProcessor.ts +7 -7
- package/src/mapper/insert/relations/OneHasManyCreateInputProcessor.ts +5 -5
- package/src/mapper/insert/relations/OneHasOneInverseCreateInputProcessor.ts +6 -6
- package/src/mapper/insert/relations/OneHasOneOwningCreateInputProcessor.ts +7 -7
- package/src/mapper/select/ConditionBuilder.ts +15 -2
- package/src/mapper/select/JoinBuilder.ts +2 -2
- package/src/mapper/select/JoinVisitor.ts +1 -1
- package/src/mapper/select/OrderByBuilder.ts +3 -3
- package/src/mapper/select/OrderByHelper.ts +1 -1
- package/src/mapper/select/RelationFetcher.ts +11 -13
- package/src/mapper/select/SelectBuilder.ts +11 -11
- package/src/mapper/select/SelectBuilderFactory.ts +2 -2
- package/src/mapper/select/SelectExecutionHandler.ts +4 -4
- package/src/mapper/select/SelectHydrator.ts +45 -18
- package/src/mapper/select/WhereBuilder.ts +5 -5
- package/src/mapper/select/handlers/FieldsVisitor.ts +22 -7
- package/src/mapper/select/handlers/FieldsVisitorFactory.ts +5 -5
- package/src/mapper/select/handlers/MetaHandler.ts +5 -5
- package/src/mapper/select/handlers/index.ts +3 -3
- package/src/mapper/select/index.ts +13 -13
- package/src/mapper/select/optimizer/ConditionOptimizer.ts +1 -1
- package/src/mapper/select/optimizer/WhereOptimizer.ts +3 -3
- package/src/mapper/types.ts +1 -1
- package/src/mapper/update/SqlUpdateInputProcessor.ts +11 -11
- package/src/mapper/update/UpdateBuilder.ts +6 -6
- package/src/mapper/update/UpdateBuilderFactory.ts +3 -3
- package/src/mapper/update/Updater.ts +8 -8
- package/src/mapper/update/index.ts +4 -4
- package/src/mapper/update/relations/ManyHasManyUpdateInputProcessor.ts +6 -6
- package/src/mapper/update/relations/ManyHasOneUpdateInputProcessor.ts +7 -7
- package/src/mapper/update/relations/OneHasManyUpdateInputProcessor.ts +6 -6
- package/src/mapper/update/relations/OneHasOneInverseUpdateInputProcessor.ts +6 -6
- package/src/mapper/update/relations/OneHasOneOwningUpdateInputProcessor.ts +7 -7
- package/src/resolvers/GraphQlQueryAstFactory.ts +2 -2
- package/src/resolvers/MutationResolver.ts +68 -45
- package/src/resolvers/ReadHelpers.ts +5 -5
- package/src/resolvers/ReadResolver.ts +4 -4
- package/src/resolvers/RefreshViewResolver.ts +1 -1
- package/src/resolvers/ValidationResolver.ts +3 -3
- package/src/resolvers/index.ts +4 -4
- package/src/schema/ColumnTypeResolver.ts +6 -4
- package/src/schema/ConditionTypeProvider.ts +7 -4
- package/src/schema/CustomTypesProvider.ts +37 -0
- package/src/schema/EntityTypeProvider.ts +10 -10
- package/src/schema/EnumsProvider.ts +1 -1
- package/src/schema/FieldAccessVisitor.ts +1 -1
- package/src/schema/GraphQlSchemaBuilder.ts +6 -6
- package/src/schema/GraphQlSchemaBuilderFactory.ts +30 -30
- package/src/schema/MutationProvider.ts +9 -9
- package/src/schema/OperationExtension.ts +1 -1
- package/src/schema/OrderByTypeProvider.ts +4 -4
- package/src/schema/PaginatedFieldConfigFactory.ts +3 -3
- package/src/schema/QueryProvider.ts +8 -8
- package/src/schema/RefreshViewMutationProvider.ts +2 -2
- package/src/schema/ValidationQueriesProvider.ts +5 -5
- package/src/schema/WhereTypeProvider.ts +7 -7
- package/src/schema/entities/FieldArgsVisitor.ts +2 -2
- package/src/schema/entities/FieldTypeVisitor.ts +4 -4
- package/src/schema/entities/index.ts +2 -2
- package/src/schema/index.ts +18 -18
- package/src/schema/mutations/ConnectOrCreateRelationInputProvider.ts +5 -5
- package/src/schema/mutations/CreateEntityInputFieldVisitor.ts +3 -3
- package/src/schema/mutations/CreateEntityRelationAllowedOperationsVisitor.ts +2 -2
- package/src/schema/mutations/CreateEntityRelationInputFieldVisitor.ts +7 -7
- package/src/schema/mutations/CreateEntityRelationInputProvider.ts +2 -2
- package/src/schema/mutations/EntityInputProvider.ts +4 -4
- package/src/schema/mutations/UpdateEntityInputFieldVisitor.ts +3 -3
- package/src/schema/mutations/UpdateEntityRelationAllowedOperationsVisitor.ts +1 -1
- package/src/schema/mutations/UpdateEntityRelationInputFieldVisitor.ts +8 -8
- package/src/schema/mutations/UpdateEntityRelationInputProvider.ts +2 -2
- package/src/schema/mutations/index.ts +9 -9
- package/src/schema/utils.ts +1 -1
- package/src/types.ts +1 -1
- package/src/utils/accessor.ts +2 -2
- package/src/utils/index.ts +13 -13
- package/src/utils/paginationUtils.ts +1 -1
- package/src/utils/singletonFactory.ts +1 -1
- package/tests/cases/bugs/bug-filter-or.test.ts +3 -3
- package/tests/cases/bugs/bug-update-by-nested-unique.test.ts +3 -3
- package/tests/cases/bugs/bug102.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/delete/aclDelete.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/delete/additionalDeleteFilter.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/delete/cascadeDelete.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/delete/deleteById.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/delete/orphanRemoval.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/delete/restrictOnDelete.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/delete/setNullOnDelete.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/insert/acl/setField.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/insert/aclInsert.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/insert/basicInsert.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/insert/insertCustomId.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/insert/jsonInsert.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/insert/manyHasManyInverse/create.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/insert/manyHasManyOwning/create.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/insert/manyHasOne/connectOrCreate.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/insert/manyHasOne/create.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/insert/memoryBudget.test.ts +97 -0
- package/tests/cases/integration/graphQlRequests/insert/numericColumn.test.ts +110 -0
- package/tests/cases/integration/graphQlRequests/insert/oneHasMany/connect.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/insert/oneHasMany/create.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/insert/oneHasOneInverse/create.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/insert/oneHasOneOwning/create.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/insert/oneHasOneOwning/empty.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/insert/subOperationFail.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/insert/validation/toBeFixed.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/query/acl/differentRowAndFieldPredicate.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/query/acl/fieldRestrictedByLocale.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/query/acl/isNullAcl.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/query/acl/nestedPredicate.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/query/acl/orPredicate.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/query/acl/predicateElimination.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/query/acl/relationAcl.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/query/acl/rowPredicateSubset.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/query/acl/sameRowAndFieldPredicate.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/query/filter/backReferencedFilter.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/query/filter/complexCondition.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/query/filter/composedFilter.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/query/filter/containsQuery.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/query/filter/manyHasManyOwnerRelation.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/query/filter/manyHasOneRelation.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/query/filter/numericFilter.test.ts +92 -0
- package/tests/cases/integration/graphQlRequests/query/filter/oneHasManyRelation.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/query/filter/similarQuery.test.ts +72 -0
- package/tests/cases/integration/graphQlRequests/query/formatting/dateFormat.test.ts +135 -4
- package/tests/cases/integration/graphQlRequests/query/formatting/numericFormat.test.ts +68 -0
- package/tests/cases/integration/graphQlRequests/query/formatting/numericList.test.ts +41 -0
- package/tests/cases/integration/graphQlRequests/query/graphqlFeatures/alias.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/query/graphqlFeatures/fragments.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/query/misc/aliasedType.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/query/misc/longAliasHash.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/query/misc/reducedHasMany.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/query/misc/transaction.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/query/pagination/hasManyLimit.test.ts +51 -5
- package/tests/cases/integration/graphQlRequests/query/pagination/paginate.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/query/pagination/paginateAliased.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/query/pagination/simpleLimit.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/query/relations/advanced.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/query/relations/manyHasManyInverse.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/query/relations/manyHasManyOwning.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/query/relations/manyHasOne.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/query/relations/oneHasMany.test.ts +6 -6
- package/tests/cases/integration/graphQlRequests/query/relations/oneHasOneInverse.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/query/relations/oneHasOneOwner.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/query/sorting/byRelations.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/query/sorting/defaultOrdering.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/query/sorting/orderBy.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/query/sorting/randomSort.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/query/sorting/sortNulls.test.ts +2 -2
- package/tests/cases/integration/graphQlRequests/query/sorting/sortedHasMany.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/query/unique/basicQueryById.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/query/unique/composedUnique.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/query/unique/oneHasManyUnique.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/query/unique/uniqueWithFilter.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/query/view/view.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/update/acl/aclUpdate.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/update/additionalFilter.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/update/basic/columnUpdate.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/update/manyHasManyInverse/connect.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/update/manyHasManyInverse/create.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/update/manyHasManyInverse/delete.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/update/manyHasManyInverse/disconnect.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/update/manyHasManyInverse/update.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/update/manyHasManyInverse/upsert.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/update/manyHasManyOwning/connect.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/update/manyHasManyOwning/connectOrCreate.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/update/manyHasManyOwning/create.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/update/manyHasManyOwning/delete.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/update/manyHasManyOwning/disconnect.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/update/manyHasManyOwning/update.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/update/manyHasManyOwning/upsert.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/update/manyHasOne/connect.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/update/manyHasOne/create.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/update/manyHasOne/delete.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/update/manyHasOne/disconnect.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/update/manyHasOne/update.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/update/manyHasOne/upsert.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/update/oneHasMany/combination.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/update/oneHasMany/connect.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/update/oneHasMany/connectOrCreate.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/update/oneHasMany/create.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/update/oneHasMany/delete.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/update/oneHasMany/disconnect.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/update/oneHasMany/update.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/update/oneHasMany/upsert.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/update/oneHasOneInverse/connect.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/update/oneHasOneInverse/create.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/update/oneHasOneInverse/delete.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/update/oneHasOneInverse/disconnect.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/update/oneHasOneInverse/update.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/update/oneHasOneInverse/upsert.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/connect.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/connectOrCreate.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/create.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/delete.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/disconnect.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/update.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/update/oneHasOneOwning/upsert.test.ts +4 -4
- package/tests/cases/integration/graphQlRequests/update/queryPortal.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/update/transaction.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/update/validation/toBeFixed.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/upsert/basicUpsert.test.ts +3 -3
- package/tests/cases/integration/graphQlRequests/validation/conditions.test.ts +1 -1
- package/tests/cases/integration/graphQlRequests/validation/nestedValidation.test.ts +2 -2
- package/tests/cases/integration/graphQlRequests/validation/optionalAssert.test.ts +2 -2
- package/tests/cases/integration/graphQlRequests/validation/required.test.ts +2 -2
- package/tests/cases/integration/graphQlRequests/validation/requiredWhen.test.ts +2 -2
- package/tests/cases/integration/graphQlRequests/validation/rules/andRule.test.ts +1 -1
- package/tests/cases/integration/graphQlRequests/validation/rules/lengthRangeRule.test.ts +1 -1
- package/tests/cases/integration/graphQlRequests/validation/rules/maxLengthRule.test.ts +1 -1
- package/tests/cases/integration/graphQlRequests/validation/rules/minLength.test.ts +1 -1
- package/tests/cases/integration/graphQlRequests/validation/rules/notEmptyRule.test.ts +1 -1
- package/tests/cases/integration/graphQlRequests/validation/rules/notRule.test.ts +1 -1
- package/tests/cases/integration/graphQlRequests/validation/rules/orRule.test.ts +1 -1
- package/tests/cases/integration/graphQlRequests/validation/rules/patternRule.test.ts +1 -1
- package/tests/cases/integration/graphQlRequests/validation/rules/rangeRule.test.ts +1 -1
- package/tests/cases/integration/graphQlRequests/validation/utils.ts +2 -2
- package/tests/cases/integration/graphQlSchema/graphQlSchemaBuilder.test.ts +2 -2
- package/tests/cases/integration/graphQlSchema/schema-acl-allowed.gql +3 -0
- package/tests/cases/integration/graphQlSchema/schema-acl-create-only.gql +1 -0
- package/tests/cases/integration/graphQlSchema/schema-acl-predicate.gql +2 -0
- package/tests/cases/integration/graphQlSchema/schema-acl-predicate2.gql +2 -0
- package/tests/cases/integration/graphQlSchema/schema-acl-restricted-create.gql +3 -0
- package/tests/cases/integration/graphQlSchema/schema-acl-restricted-delete.gql +3 -0
- package/tests/cases/integration/graphQlSchema/schema-acl-restricted-update.gql +3 -0
- package/tests/cases/integration/graphQlSchema/schema-acl.gql +3 -0
- package/tests/cases/integration/graphQlSchema/schema-aliased-type.gql +3 -0
- package/tests/cases/integration/graphQlSchema/schema-array.gql +1 -0
- package/tests/cases/integration/graphQlSchema/schema-basic.gql +3 -0
- package/tests/cases/integration/graphQlSchema/schema-bug-66.gql +3 -0
- package/tests/cases/integration/graphQlSchema/schema-column-types.gql +3 -0
- package/tests/cases/integration/graphQlSchema/schema-custom-primary.gql +3 -0
- package/tests/cases/integration/graphQlSchema/schema-has-many-reduction.gql +3 -0
- package/tests/cases/integration/graphQlSchema/schema-new-builder.gql +3 -0
- package/tests/cases/integration/graphQlSchema/schema-no-root-ops.gql +3 -0
- package/tests/cases/integration/graphQlSchema/schema-read-only.gql +2 -0
- package/tests/cases/integration/graphQlSchema/schema-view-entity.gql +2 -0
- package/tests/cases/unit/aclVariablesFactory.test.ts +2 -2
- package/tests/cases/unit/conditionOptimizer.test.ts +1 -1
- package/tests/cases/unit/decimalType.test.ts +65 -0
- package/tests/cases/unit/inputPreValidator.test.ts +101 -6
- package/tests/cases/unit/inputValidation.test.ts +3 -3
- package/tests/cases/unit/jsonSchemaValidator.test.ts +115 -0
- package/tests/cases/unit/orderbyHelper.test.ts +3 -3
- package/tests/cases/unit/permissionMerger.test.ts +2 -2
- package/tests/cases/unit/predicatesFactory.test.ts +2 -2
- package/tests/cases/unit/predicatesInjector.test.ts +5 -5
- package/tests/cases/unit/uuidType.test.ts +1 -1
- package/tests/cases/unit/variableInjector.test.ts +2 -2
- package/tests/cases/unit/whereBuilder.test.ts +4 -4
- package/tests/cases/unit/whereOptimizer.test.ts +3 -3
- package/tests/src/test.ts +9 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getEntity } from '@contember/schema-utils'
|
|
2
|
-
import { PathFactory, WhereBuilder } from './select'
|
|
3
|
-
import { PredicateFactory } from '../acl'
|
|
2
|
+
import { PathFactory, WhereBuilder } from './select/index.js'
|
|
3
|
+
import { PredicateFactory } from '../acl/index.js'
|
|
4
4
|
import { Client, ConflictActionType, DeleteBuilder, InsertBuilder, Literal, Operator, SelectBuilder } from '@contember/database'
|
|
5
5
|
import { Acl, Input, Model } from '@contember/schema'
|
|
6
6
|
import {
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
MutationResultList,
|
|
11
11
|
MutationResultType,
|
|
12
12
|
NothingToDoReason,
|
|
13
|
-
} from './Result'
|
|
14
|
-
import { ImplementationException } from '../exception'
|
|
15
|
-
import { AfterJunctionUpdateEvent, BeforeJunctionUpdateEvent } from './EventManager'
|
|
16
|
-
import { Mapper } from './Mapper'
|
|
13
|
+
} from './Result.js'
|
|
14
|
+
import { ImplementationException } from '../exception.js'
|
|
15
|
+
import { AfterJunctionUpdateEvent, BeforeJunctionUpdateEvent } from './EventManager.js'
|
|
16
|
+
import { Mapper } from './Mapper.js'
|
|
17
17
|
|
|
18
18
|
type OkResultFactory = () => MutationJunctionUpdateOk
|
|
19
19
|
|
package/src/mapper/Mapper.ts
CHANGED
|
@@ -9,27 +9,29 @@ import {
|
|
|
9
9
|
SelectIndexedResultObjects,
|
|
10
10
|
SelectResultObject,
|
|
11
11
|
WhereBuilder,
|
|
12
|
-
} from './select'
|
|
13
|
-
import { Client, Connection, ConstraintHelper, DatabaseMetadata, SelectBuilder } from '@contember/database'
|
|
14
|
-
import { PredicatesInjector } from '../acl'
|
|
15
|
-
import { JunctionTableManager } from './JunctionTableManager'
|
|
16
|
-
import { DeletedEntitiesStorage, DeleteExecutor } from './delete'
|
|
17
|
-
import { MutationEntryNotFoundError, MutationResultList } from './Result'
|
|
18
|
-
import { UpdateBuilder, Updater } from './update'
|
|
19
|
-
import { InsertBuilder, Inserter } from './insert'
|
|
20
|
-
import { tryMutation } from './ErrorUtils'
|
|
21
|
-
import { ObjectNode, UniqueWhereExpander } from '../inputProcessing'
|
|
22
|
-
import { Mutex } from '../utils'
|
|
23
|
-
import { CheckedPrimary } from './CheckedPrimary'
|
|
24
|
-
import { ImplementationException } from '../exception'
|
|
25
|
-
import { EventManager } from './EventManager'
|
|
26
|
-
import { MapperInput } from './types'
|
|
12
|
+
} from './select/index.js'
|
|
13
|
+
import { Client, Connection, ConstraintHelper, DatabaseMetadata, RequestMemoryBudget, SelectBuilder } from '@contember/database'
|
|
14
|
+
import { PredicatesInjector } from '../acl/index.js'
|
|
15
|
+
import { JunctionTableManager } from './JunctionTableManager.js'
|
|
16
|
+
import { DeletedEntitiesStorage, DeleteExecutor } from './delete/index.js'
|
|
17
|
+
import { MutationEntryNotFoundError, MutationResultList } from './Result.js'
|
|
18
|
+
import { UpdateBuilder, Updater } from './update/index.js'
|
|
19
|
+
import { InsertBuilder, Inserter } from './insert/index.js'
|
|
20
|
+
import { tryMutation } from './ErrorUtils.js'
|
|
21
|
+
import { ObjectNode, UniqueWhereExpander } from '../inputProcessing/index.js'
|
|
22
|
+
import { Mutex } from '../utils/index.js'
|
|
23
|
+
import { CheckedPrimary } from './CheckedPrimary.js'
|
|
24
|
+
import { ImplementationException } from '../exception.js'
|
|
25
|
+
import { EventManager } from './EventManager.js'
|
|
26
|
+
import { MapperInput } from './types.js'
|
|
27
27
|
|
|
28
28
|
export class Mapper<ConnectionType extends Connection.ConnectionLike = Connection.ConnectionLike> {
|
|
29
29
|
private systemVariablesSetupDone: Promise<void> | undefined
|
|
30
30
|
public readonly deletedEntities = new DeletedEntitiesStorage()
|
|
31
31
|
public readonly mutex = new Mutex()
|
|
32
32
|
public readonly constraintHelper: ConstraintHelper
|
|
33
|
+
/** Charges the request memory budget; only selection results use it, internal mutation queries stay on `db`. */
|
|
34
|
+
public readonly selectionDb: Client<ConnectionType>
|
|
33
35
|
|
|
34
36
|
public readonly eventManager: EventManager
|
|
35
37
|
|
|
@@ -48,8 +50,10 @@ export class Mapper<ConnectionType extends Connection.ConnectionLike = Connectio
|
|
|
48
50
|
private readonly updater: Updater,
|
|
49
51
|
private readonly inserter: Inserter,
|
|
50
52
|
private readonly pathFactory: PathFactory,
|
|
53
|
+
private readonly memoryBudget?: RequestMemoryBudget,
|
|
51
54
|
) {
|
|
52
55
|
this.constraintHelper = new ConstraintHelper(db, this.schemaDatabaseMetadata)
|
|
56
|
+
this.selectionDb = memoryBudget ? db.withMemoryBudget(memoryBudget, { chargeRows: true }) : db
|
|
53
57
|
this.eventManager = new EventManager(this)
|
|
54
58
|
}
|
|
55
59
|
|
|
@@ -73,7 +77,7 @@ export class Mapper<ConnectionType extends Connection.ConnectionLike = Connectio
|
|
|
73
77
|
relationPath: Model.AnyRelationContext[],
|
|
74
78
|
indexBy: string,
|
|
75
79
|
): Promise<SelectIndexedResultObjects> {
|
|
76
|
-
const hydrator = new SelectHydrator()
|
|
80
|
+
const hydrator = new SelectHydrator(this.memoryBudget)
|
|
77
81
|
const path = this.pathFactory.create([])
|
|
78
82
|
const indexByAlias: string = path.for(indexBy).alias
|
|
79
83
|
const qb: SelectBuilder = SelectBuilder.create()
|
|
@@ -87,7 +91,7 @@ export class Mapper<ConnectionType extends Connection.ConnectionLike = Connectio
|
|
|
87
91
|
input: ObjectNode<Input.ListQueryInput>,
|
|
88
92
|
relationPath: Model.AnyRelationContext[],
|
|
89
93
|
): Promise<SelectResultObject[]> {
|
|
90
|
-
const hydrator = new SelectHydrator()
|
|
94
|
+
const hydrator = new SelectHydrator(this.memoryBudget)
|
|
91
95
|
const qb: SelectBuilder<SelectBuilder.Result> = SelectBuilder.create()
|
|
92
96
|
|
|
93
97
|
const rows = await this.selectRows(hydrator, qb, entity, input, relationPath)
|
|
@@ -115,7 +119,7 @@ export class Mapper<ConnectionType extends Connection.ConnectionLike = Connectio
|
|
|
115
119
|
relation: Model.JoiningColumnRelation & Model.AnyRelation,
|
|
116
120
|
relationPath: Model.AnyRelationContext[],
|
|
117
121
|
): Promise<SelectGroupedObjects> {
|
|
118
|
-
const hydrator = new SelectHydrator()
|
|
122
|
+
const hydrator = new SelectHydrator(this.memoryBudget)
|
|
119
123
|
const path = this.pathFactory.create([])
|
|
120
124
|
const groupingKey = '__grouping_key'
|
|
121
125
|
const qb: SelectBuilder = SelectBuilder.create()
|
|
@@ -147,7 +151,7 @@ export class Mapper<ConnectionType extends Connection.ConnectionLike = Connectio
|
|
|
147
151
|
)
|
|
148
152
|
const inputWithPredicates = inputWithOrder.withArg('filter', filterWithPredicates)
|
|
149
153
|
selector.select(this, entity, inputWithPredicates, path, groupBy)
|
|
150
|
-
return await selector.execute(this.
|
|
154
|
+
return await selector.execute(this.selectionDb)
|
|
151
155
|
}
|
|
152
156
|
|
|
153
157
|
public async count(entity: Model.Entity, filter: Input.OptionalWhere) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { PredicatesInjector } from '../acl'
|
|
2
|
-
import { PathFactory, SelectBuilderFactory, WhereBuilder } from './select'
|
|
3
|
-
import { UniqueWhereExpander } from '../inputProcessing'
|
|
4
|
-
import { JunctionTableManager } from './JunctionTableManager'
|
|
5
|
-
import { DeleteExecutor } from './delete'
|
|
6
|
-
import { Updater } from './update'
|
|
7
|
-
import { Inserter } from './insert'
|
|
1
|
+
import { PredicatesInjector } from '../acl/index.js'
|
|
2
|
+
import { PathFactory, SelectBuilderFactory, WhereBuilder } from './select/index.js'
|
|
3
|
+
import { UniqueWhereExpander } from '../inputProcessing/index.js'
|
|
4
|
+
import { JunctionTableManager } from './JunctionTableManager.js'
|
|
5
|
+
import { DeleteExecutor } from './delete/index.js'
|
|
6
|
+
import { Updater } from './update/index.js'
|
|
7
|
+
import { Inserter } from './insert/index.js'
|
|
8
8
|
import { Model } from '@contember/schema'
|
|
9
|
-
import { Client, Connection, DatabaseMetadata } from '@contember/database'
|
|
10
|
-
import { Mapper } from './Mapper'
|
|
9
|
+
import { Client, Connection, DatabaseMetadata, RequestMemoryBudget } from '@contember/database'
|
|
10
|
+
import { Mapper } from './Mapper.js'
|
|
11
11
|
import { Providers } from '@contember/schema-utils'
|
|
12
12
|
|
|
13
13
|
export type MapperFactoryHook = (mapper: Mapper) => void
|
|
@@ -30,6 +30,7 @@ export class MapperFactory {
|
|
|
30
30
|
private readonly inserter: Inserter,
|
|
31
31
|
private readonly pathFactory: PathFactory,
|
|
32
32
|
private readonly providers: Providers,
|
|
33
|
+
private readonly memoryBudget?: RequestMemoryBudget,
|
|
33
34
|
) {
|
|
34
35
|
}
|
|
35
36
|
|
|
@@ -37,8 +38,10 @@ export class MapperFactory {
|
|
|
37
38
|
return this.createInternal(this.db)
|
|
38
39
|
}
|
|
39
40
|
|
|
40
|
-
public transaction<T>(cb: (mapper: Mapper<Connection.TransactionLike>) => Promise<T>): Promise<T> {
|
|
41
|
-
|
|
41
|
+
public async transaction<T>(cb: (mapper: Mapper<Connection.TransactionLike>) => Promise<T>): Promise<T> {
|
|
42
|
+
// Refused here as well as by the bound `db`, so an exhausted request stops before it queues for a pool connection.
|
|
43
|
+
this.memoryBudget?.check()
|
|
44
|
+
return await this.db.transaction(async trx => {
|
|
42
45
|
await trx.connection.query(Connection.REPEATABLE_READ)
|
|
43
46
|
const mapper = this.createInternal(trx)
|
|
44
47
|
return await cb(mapper)
|
|
@@ -61,6 +64,7 @@ export class MapperFactory {
|
|
|
61
64
|
this.updater,
|
|
62
65
|
this.inserter,
|
|
63
66
|
this.pathFactory,
|
|
67
|
+
this.memoryBudget,
|
|
64
68
|
)
|
|
65
69
|
this.hooks.forEach(it => it(mapper))
|
|
66
70
|
return mapper
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MutationResultList, prependPath } from './Result'
|
|
1
|
+
import { MutationResultList, prependPath } from './Result.js'
|
|
2
2
|
import { Model } from '@contember/schema'
|
|
3
3
|
|
|
4
4
|
export const hasManyProcessor = <Context extends { relation: Model.AnyRelation; index: number; alias?: string }, Args>(
|
package/src/mapper/Result.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Acl, Input, Model } from '@contember/schema'
|
|
2
|
-
import { assertNever } from '../../utils'
|
|
2
|
+
import { assertNever } from '../../utils/index.js'
|
|
3
3
|
import { Client, DeleteBuilder, Literal, SelectBuilder } from '@contember/database'
|
|
4
|
-
import { PathFactory, WhereBuilder } from '../select'
|
|
5
|
-
import { PredicateFactory } from '../../acl'
|
|
6
|
-
import { UpdateBuilderFactory } from '../update'
|
|
4
|
+
import { PathFactory, WhereBuilder } from '../select/index.js'
|
|
5
|
+
import { PredicateFactory } from '../../acl/index.js'
|
|
6
|
+
import { UpdateBuilderFactory } from '../update/index.js'
|
|
7
7
|
import {
|
|
8
8
|
ConstraintType,
|
|
9
9
|
MutationConstraintViolationError,
|
|
@@ -14,20 +14,20 @@ import {
|
|
|
14
14
|
MutationResultList,
|
|
15
15
|
MutationUpdateOk,
|
|
16
16
|
NothingToDoReason,
|
|
17
|
-
} from '../Result'
|
|
18
|
-
import { Mapper } from '../Mapper'
|
|
19
|
-
import { CheckedPrimary } from '../CheckedPrimary'
|
|
20
|
-
import { DeleteState } from './DeleteState'
|
|
17
|
+
} from '../Result.js'
|
|
18
|
+
import { Mapper } from '../Mapper.js'
|
|
19
|
+
import { CheckedPrimary } from '../CheckedPrimary.js'
|
|
20
|
+
import { DeleteState } from './DeleteState.js'
|
|
21
21
|
import {
|
|
22
22
|
EntityReferenceRow,
|
|
23
23
|
findOwningRelations,
|
|
24
24
|
findRelationsWithOrphanRemoval,
|
|
25
25
|
formatConstraintViolationMessage,
|
|
26
26
|
OneHasOneOwningRelationTuple,
|
|
27
|
-
} from './helpers'
|
|
27
|
+
} from './helpers.js'
|
|
28
28
|
import { getEntity } from '@contember/schema-utils'
|
|
29
|
-
import { AfterUpdateEvent, BeforeDeleteEvent, BeforeUpdateEvent, EventManager } from '../EventManager'
|
|
30
|
-
import { ImplementationException } from '../../exception'
|
|
29
|
+
import { AfterUpdateEvent, BeforeDeleteEvent, BeforeUpdateEvent, EventManager } from '../EventManager.js'
|
|
30
|
+
import { ImplementationException } from '../../exception.js'
|
|
31
31
|
|
|
32
32
|
type DeleteQueue = [entity: Model.Entity, ids: Input.PrimaryValue[]][]
|
|
33
33
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DeletedEntitiesStorage } from './DeletedEntitiesStorage'
|
|
1
|
+
import { DeletedEntitiesStorage } from './DeletedEntitiesStorage.js'
|
|
2
2
|
import { Input } from '@contember/schema'
|
|
3
|
-
import { ImplementationException } from '../../exception'
|
|
4
|
-
import { MutationResult, MutationResultList } from '../Result'
|
|
3
|
+
import { ImplementationException } from '../../exception.js'
|
|
4
|
+
import { MutationResult, MutationResultList } from '../Result.js'
|
|
5
5
|
|
|
6
6
|
export class DeleteState {
|
|
7
7
|
private plannedDelete = new DeletedEntitiesStorage()
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './DeletedEntitiesStorage'
|
|
2
|
-
export * from './DeleteExecutor'
|
|
1
|
+
export * from './DeletedEntitiesStorage.js'
|
|
2
|
+
export * from './DeleteExecutor.js'
|
package/src/mapper/index.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export * from './delete'
|
|
2
|
-
export * from './insert'
|
|
3
|
-
export * from './select'
|
|
4
|
-
export * from './update'
|
|
5
|
-
export * from './ColumnValue'
|
|
6
|
-
export * from './Constraints'
|
|
7
|
-
export * from './ErrorUtils'
|
|
8
|
-
export * from './EventManager'
|
|
9
|
-
export * from './JunctionTableManager'
|
|
10
|
-
export * from './Mapper'
|
|
11
|
-
export * from '../ExecutionContainer'
|
|
12
|
-
export * from './MapperFactory'
|
|
13
|
-
export * from './MutationProcessorHelper'
|
|
14
|
-
export * from './Result'
|
|
15
|
-
export * from './types'
|
|
1
|
+
export * from './delete/index.js'
|
|
2
|
+
export * from './insert/index.js'
|
|
3
|
+
export * from './select/index.js'
|
|
4
|
+
export * from './update/index.js'
|
|
5
|
+
export * from './ColumnValue.js'
|
|
6
|
+
export * from './Constraints.js'
|
|
7
|
+
export * from './ErrorUtils.js'
|
|
8
|
+
export * from './EventManager.js'
|
|
9
|
+
export * from './JunctionTableManager.js'
|
|
10
|
+
export * from './Mapper.js'
|
|
11
|
+
export * from '../ExecutionContainer.js'
|
|
12
|
+
export * from './MapperFactory.js'
|
|
13
|
+
export * from './MutationProcessorHelper.js'
|
|
14
|
+
export * from './Result.js'
|
|
15
|
+
export * from './types.js'
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Acl, Input, Model, Value } from '@contember/schema'
|
|
2
2
|
import { InsertBuilder as DbInsertBuilder, QueryBuilder, Value as DbValue } from '@contember/database'
|
|
3
|
-
import { PathFactory, WhereBuilder } from '../select'
|
|
3
|
+
import { PathFactory, WhereBuilder } from '../select/index.js'
|
|
4
4
|
import { getColumnName, getColumnType } from '@contember/schema-utils'
|
|
5
|
-
import { ColumnValue, normalizeDbValue } from '../ColumnValue'
|
|
6
|
-
import { PredicateFactory } from '../../acl'
|
|
7
|
-
import { AfterInsertEvent, BeforeInsertEvent } from '../EventManager'
|
|
8
|
-
import { Mapper } from '../Mapper'
|
|
5
|
+
import { ColumnValue, normalizeDbValue } from '../ColumnValue.js'
|
|
6
|
+
import { PredicateFactory } from '../../acl/index.js'
|
|
7
|
+
import { AfterInsertEvent, BeforeInsertEvent } from '../EventManager.js'
|
|
8
|
+
import { Mapper } from '../Mapper.js'
|
|
9
9
|
|
|
10
10
|
export interface InsertResult {
|
|
11
11
|
values: ColumnValue[]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PathFactory, WhereBuilder } from '../select'
|
|
1
|
+
import { PathFactory, WhereBuilder } from '../select/index.js'
|
|
2
2
|
import { Model } from '@contember/schema'
|
|
3
|
-
import { InsertBuilder } from './InsertBuilder'
|
|
4
|
-
import { PredicateFactory } from '../../acl'
|
|
3
|
+
import { InsertBuilder } from './InsertBuilder.js'
|
|
4
|
+
import { PredicateFactory } from '../../acl/index.js'
|
|
5
5
|
|
|
6
6
|
export class InsertBuilderFactory {
|
|
7
7
|
constructor(
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { MutationCreateOk, MutationNoResultError, MutationResultList } from '../Result'
|
|
2
|
-
import { CreateInputVisitor } from '../../inputProcessing'
|
|
3
|
-
import { SqlCreateInputProcessor, SqlCreateInputProcessorResult } from './SqlCreateInputProcessor'
|
|
4
|
-
import { Mapper } from '../Mapper'
|
|
1
|
+
import { MutationCreateOk, MutationNoResultError, MutationResultList } from '../Result.js'
|
|
2
|
+
import { CreateInputVisitor } from '../../inputProcessing/index.js'
|
|
3
|
+
import { SqlCreateInputProcessor, SqlCreateInputProcessorResult } from './SqlCreateInputProcessor.js'
|
|
4
|
+
import { Mapper } from '../Mapper.js'
|
|
5
5
|
import { Model } from '@contember/schema'
|
|
6
6
|
import { acceptFieldVisitor, Providers } from '@contember/schema-utils'
|
|
7
|
-
import { InsertBuilderFactory } from './InsertBuilderFactory'
|
|
8
|
-
import { InsertBuilder } from './InsertBuilder'
|
|
9
|
-
import { rowDataToFieldValues } from '../ColumnValue'
|
|
7
|
+
import { InsertBuilderFactory } from './InsertBuilderFactory.js'
|
|
8
|
+
import { InsertBuilder } from './InsertBuilder.js'
|
|
9
|
+
import { rowDataToFieldValues } from '../ColumnValue.js'
|
|
10
10
|
import { DatabaseMetadata } from '@contember/database'
|
|
11
|
-
import { MapperInput } from '../types'
|
|
11
|
+
import { MapperInput } from '../types.js'
|
|
12
12
|
|
|
13
13
|
export class Inserter {
|
|
14
14
|
constructor(
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Input, Model, Value } from '@contember/schema'
|
|
2
|
-
import { Mapper } from '../Mapper'
|
|
3
|
-
import { InsertBuilder } from './InsertBuilder'
|
|
2
|
+
import { Mapper } from '../Mapper.js'
|
|
3
|
+
import { InsertBuilder } from './InsertBuilder.js'
|
|
4
4
|
import { Providers, resolveColumnValue } from '@contember/schema-utils'
|
|
5
|
-
import { CreateInputProcessor } from '../../inputProcessing'
|
|
6
|
-
import { MutationResultList } from '../Result'
|
|
7
|
-
import { hasManyProcessor, hasOneProcessor } from '../MutationProcessorHelper'
|
|
8
|
-
import { OneHasOneInverseCreateInputProcessor } from './relations/OneHasOneInverseCreateInputProcessor'
|
|
9
|
-
import { OneHasOneOwningCreateInputProcessor } from './relations/OneHasOneOwningCreateInputProcessor'
|
|
10
|
-
import { OneHasManyCreateInputProcessor } from './relations/OneHasManyCreateInputProcessor'
|
|
11
|
-
import { ManyHasOneCreateInputProcessor } from './relations/ManyHasOneCreateInputProcessor'
|
|
12
|
-
import { ManyHasManyCreateInputProcessor } from './relations/ManyHasManyCreateInputProcessor'
|
|
5
|
+
import { CreateInputProcessor } from '../../inputProcessing/index.js'
|
|
6
|
+
import { MutationResultList } from '../Result.js'
|
|
7
|
+
import { hasManyProcessor, hasOneProcessor } from '../MutationProcessorHelper.js'
|
|
8
|
+
import { OneHasOneInverseCreateInputProcessor } from './relations/OneHasOneInverseCreateInputProcessor.js'
|
|
9
|
+
import { OneHasOneOwningCreateInputProcessor } from './relations/OneHasOneOwningCreateInputProcessor.js'
|
|
10
|
+
import { OneHasManyCreateInputProcessor } from './relations/OneHasManyCreateInputProcessor.js'
|
|
11
|
+
import { ManyHasOneCreateInputProcessor } from './relations/ManyHasOneCreateInputProcessor.js'
|
|
12
|
+
import { ManyHasManyCreateInputProcessor } from './relations/ManyHasManyCreateInputProcessor.js'
|
|
13
13
|
|
|
14
14
|
export type SqlCreateInputProcessorResult = MutationResultList | ((ctx: { primary: Input.PrimaryValue }) => Promise<MutationResultList>)
|
|
15
15
|
export class SqlCreateInputProcessor implements CreateInputProcessor<SqlCreateInputProcessorResult> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './InsertBuilder'
|
|
2
|
-
export * from './InsertBuilderFactory'
|
|
3
|
-
export * from './Inserter'
|
|
4
|
-
export * from './SqlCreateInputProcessor'
|
|
1
|
+
export * from './InsertBuilder.js'
|
|
2
|
+
export * from './InsertBuilderFactory.js'
|
|
3
|
+
export * from './Inserter.js'
|
|
4
|
+
export * from './SqlCreateInputProcessor.js'
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Input, Model } from '@contember/schema'
|
|
2
|
-
import { getInsertPrimary, MutationEntryNotFoundError } from '../../Result'
|
|
3
|
-
import { Mapper } from '../../Mapper'
|
|
4
|
-
import { CreateInputProcessor } from '../../../inputProcessing'
|
|
5
|
-
import { SqlCreateInputProcessorResult } from '../SqlCreateInputProcessor'
|
|
6
|
-
import { CheckedPrimary } from '../../CheckedPrimary'
|
|
7
|
-
import { MapperInput } from '../../types'
|
|
2
|
+
import { getInsertPrimary, MutationEntryNotFoundError } from '../../Result.js'
|
|
3
|
+
import { Mapper } from '../../Mapper.js'
|
|
4
|
+
import { CreateInputProcessor } from '../../../inputProcessing/index.js'
|
|
5
|
+
import { SqlCreateInputProcessorResult } from '../SqlCreateInputProcessor.js'
|
|
6
|
+
import { CheckedPrimary } from '../../CheckedPrimary.js'
|
|
7
|
+
import { MapperInput } from '../../types.js'
|
|
8
8
|
|
|
9
9
|
type Context = Model.ManyHasManyOwningContext | Model.ManyHasManyInverseContext
|
|
10
10
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Input, Model } from '@contember/schema'
|
|
2
|
-
import { getInsertPrimary, MutationEntryNotFoundError } from '../../Result'
|
|
3
|
-
import { Mapper } from '../../Mapper'
|
|
4
|
-
import { CreateInputProcessor } from '../../../inputProcessing'
|
|
5
|
-
import { SqlCreateInputProcessorResult } from '../SqlCreateInputProcessor'
|
|
6
|
-
import { InsertBuilder } from '../InsertBuilder'
|
|
7
|
-
import { CheckedPrimary } from '../../CheckedPrimary'
|
|
8
|
-
import { MapperInput } from '../../types'
|
|
2
|
+
import { getInsertPrimary, MutationEntryNotFoundError } from '../../Result.js'
|
|
3
|
+
import { Mapper } from '../../Mapper.js'
|
|
4
|
+
import { CreateInputProcessor } from '../../../inputProcessing/index.js'
|
|
5
|
+
import { SqlCreateInputProcessorResult } from '../SqlCreateInputProcessor.js'
|
|
6
|
+
import { InsertBuilder } from '../InsertBuilder.js'
|
|
7
|
+
import { CheckedPrimary } from '../../CheckedPrimary.js'
|
|
8
|
+
import { MapperInput } from '../../types.js'
|
|
9
9
|
|
|
10
10
|
type Context = Model.ManyHasOneContext
|
|
11
11
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Input, Model } from '@contember/schema'
|
|
2
|
-
import { Mapper } from '../../Mapper'
|
|
3
|
-
import { CreateInputProcessor } from '../../../inputProcessing'
|
|
4
|
-
import { SqlCreateInputProcessorResult } from '../SqlCreateInputProcessor'
|
|
5
|
-
import { CheckedPrimary } from '../../CheckedPrimary'
|
|
6
|
-
import { MapperInput } from '../../types'
|
|
2
|
+
import { Mapper } from '../../Mapper.js'
|
|
3
|
+
import { CreateInputProcessor } from '../../../inputProcessing/index.js'
|
|
4
|
+
import { SqlCreateInputProcessorResult } from '../SqlCreateInputProcessor.js'
|
|
5
|
+
import { CheckedPrimary } from '../../CheckedPrimary.js'
|
|
6
|
+
import { MapperInput } from '../../types.js'
|
|
7
7
|
|
|
8
8
|
type Context = Model.OneHasManyContext
|
|
9
9
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Mapper } from '../../Mapper'
|
|
2
|
-
import { ConstraintType, MutationConstraintViolationError, MutationEntryNotFoundError, MutationResultList } from '../../Result'
|
|
3
|
-
import { CheckedPrimary } from '../../CheckedPrimary'
|
|
1
|
+
import { Mapper } from '../../Mapper.js'
|
|
2
|
+
import { ConstraintType, MutationConstraintViolationError, MutationEntryNotFoundError, MutationResultList } from '../../Result.js'
|
|
3
|
+
import { CheckedPrimary } from '../../CheckedPrimary.js'
|
|
4
4
|
import { Input, Model } from '@contember/schema'
|
|
5
|
-
import { CreateInputProcessor } from '../../../inputProcessing'
|
|
6
|
-
import { SqlCreateInputProcessorResult } from '../SqlCreateInputProcessor'
|
|
7
|
-
import { MapperInput } from '../../types'
|
|
5
|
+
import { CreateInputProcessor } from '../../../inputProcessing/index.js'
|
|
6
|
+
import { SqlCreateInputProcessorResult } from '../SqlCreateInputProcessor.js'
|
|
7
|
+
import { MapperInput } from '../../types.js'
|
|
8
8
|
|
|
9
9
|
type Context = Model.OneHasOneInverseContext
|
|
10
10
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ConstraintType, getInsertPrimary, MutationConstraintViolationError, MutationEntryNotFoundError, MutationResultList } from '../../Result'
|
|
2
|
-
import { InsertBuilder } from '../../insert'
|
|
3
|
-
import { Mapper } from '../../Mapper'
|
|
1
|
+
import { ConstraintType, getInsertPrimary, MutationConstraintViolationError, MutationEntryNotFoundError, MutationResultList } from '../../Result.js'
|
|
2
|
+
import { InsertBuilder } from '../../insert/index.js'
|
|
3
|
+
import { Mapper } from '../../Mapper.js'
|
|
4
4
|
import { Input, Model } from '@contember/schema'
|
|
5
|
-
import { CreateInputProcessor } from '../../../inputProcessing'
|
|
6
|
-
import { SqlCreateInputProcessorResult } from '../SqlCreateInputProcessor'
|
|
7
|
-
import { CheckedPrimary } from '../../CheckedPrimary'
|
|
8
|
-
import { MapperInput } from '../../types'
|
|
5
|
+
import { CreateInputProcessor } from '../../../inputProcessing/index.js'
|
|
6
|
+
import { SqlCreateInputProcessorResult } from '../SqlCreateInputProcessor.js'
|
|
7
|
+
import { CheckedPrimary } from '../../CheckedPrimary.js'
|
|
8
|
+
import { MapperInput } from '../../types.js'
|
|
9
9
|
|
|
10
10
|
type Context = Model.OneHasOneOwningContext
|
|
11
11
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Input, Model } from '@contember/schema'
|
|
2
2
|
import { Compiler, ConditionBuilder as SqlConditionBuilder, formatColumnIdentifier, Literal, Operator, QueryBuilder } from '@contember/database'
|
|
3
|
-
import { UserError } from '../../exception'
|
|
3
|
+
import { UserError } from '../../exception.js'
|
|
4
4
|
|
|
5
5
|
export class ConditionBuilder {
|
|
6
6
|
public build(
|
|
@@ -71,6 +71,8 @@ export class ConditionBuilder {
|
|
|
71
71
|
containsCI: (builder, value) => builder.compare(columnIdentifier, Operator.containsCI, value),
|
|
72
72
|
startsWithCI: (builder, value) => builder.compare(columnIdentifier, Operator.startsWithCI, value),
|
|
73
73
|
endsWithCI: (builder, value) => builder.compare(columnIdentifier, Operator.endsWithCI, value),
|
|
74
|
+
similar: (builder, value) => builder.compare(columnIdentifier, Operator.similar, value),
|
|
75
|
+
wordSimilar: (builder, value) => builder.compare(columnIdentifier, Operator.wordSimilar, value),
|
|
74
76
|
|
|
75
77
|
never: builder => builder.raw('false'),
|
|
76
78
|
always: builder => builder.raw('true'),
|
|
@@ -79,6 +81,17 @@ export class ConditionBuilder {
|
|
|
79
81
|
null: (builder, value) => value ? builder.isNull(columnIdentifier) : builder.not(clause => clause.isNull(columnIdentifier)),
|
|
80
82
|
}
|
|
81
83
|
|
|
82
|
-
|
|
84
|
+
// Dispatch through a generic helper so the key and the value stay correlated through a single
|
|
85
|
+
// type parameter K. Indexing `handler` with a union key would otherwise collapse the parameter
|
|
86
|
+
// type to `never`.
|
|
87
|
+
const apply = <K extends keyof Input.Condition<any>>(key: K): SqlConditionBuilder => {
|
|
88
|
+
const value = condition[key]
|
|
89
|
+
if (value === undefined) {
|
|
90
|
+
return builder
|
|
91
|
+
}
|
|
92
|
+
return handler[key](builder, value)
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
return apply(entries[0][0])
|
|
83
96
|
}
|
|
84
97
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Path } from './Path'
|
|
1
|
+
import { Path } from './Path.js'
|
|
2
2
|
import { acceptRelationTypeVisitor, getTargetEntity } from '@contember/schema-utils'
|
|
3
3
|
import { Model } from '@contember/schema'
|
|
4
|
-
import { JoinVisitor } from './JoinVisitor'
|
|
4
|
+
import { JoinVisitor } from './JoinVisitor.js'
|
|
5
5
|
import { Operator } from '@contember/database'
|
|
6
6
|
import { SelectBuilder } from '@contember/database'
|
|
7
7
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Input, Model } from '@contember/schema'
|
|
2
|
-
import { Path } from './Path'
|
|
3
|
-
import { JoinBuilder } from './JoinBuilder'
|
|
2
|
+
import { Path } from './Path.js'
|
|
3
|
+
import { JoinBuilder } from './JoinBuilder.js'
|
|
4
4
|
import { Literal, QueryBuilder, SelectBuilder } from '@contember/database'
|
|
5
5
|
import { getColumnName, getTargetEntity } from '@contember/schema-utils'
|
|
6
|
-
import { UserError } from '../../exception'
|
|
6
|
+
import { UserError } from '../../exception.js'
|
|
7
7
|
|
|
8
8
|
const orderByMapping = {
|
|
9
9
|
asc: 'asc',
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { PathFactory } from './Path'
|
|
2
|
-
import { WhereBuilder } from './WhereBuilder'
|
|
1
|
+
import { PathFactory } from './Path.js'
|
|
2
|
+
import { WhereBuilder } from './WhereBuilder.js'
|
|
3
3
|
import { Client, LimitByGroupWrapper, Operator, SelectBuilder } from '@contember/database'
|
|
4
4
|
import { Input, Model, Value } from '@contember/schema'
|
|
5
|
-
import { OrderByBuilder } from './OrderByBuilder'
|
|
6
|
-
import { PredicatesInjector } from '../../acl'
|
|
7
|
-
import { FieldNode, ObjectNode } from '../../inputProcessing'
|
|
8
|
-
import { JoiningColumns } from '../types'
|
|
9
|
-
import { OrderByHelper } from './OrderByHelper'
|
|
10
|
-
import { SelectGroupedObjects, SelectResultObject, SelectRow } from './SelectHydrator'
|
|
11
|
-
import { Mapper } from '../Mapper'
|
|
5
|
+
import { OrderByBuilder } from './OrderByBuilder.js'
|
|
6
|
+
import { PredicatesInjector } from '../../acl/index.js'
|
|
7
|
+
import { FieldNode, ObjectNode } from '../../inputProcessing/index.js'
|
|
8
|
+
import { JoiningColumns } from '../types.js'
|
|
9
|
+
import { OrderByHelper } from './OrderByHelper.js'
|
|
10
|
+
import { SelectGroupedObjects, SelectResultObject, SelectRow } from './SelectHydrator.js'
|
|
11
|
+
import { Mapper } from '../Mapper.js'
|
|
12
12
|
|
|
13
13
|
export type GroupedCounts = Record<Input.PrimaryValue, number>
|
|
14
14
|
|
|
@@ -147,7 +147,7 @@ export class RelationFetcher {
|
|
|
147
147
|
const objectNode = OrderByHelper.appendDefaultOrderBy(relationContext.targetEntity, field, defaultOrderBy)
|
|
148
148
|
const { targetEntity, entity } = relationContext
|
|
149
149
|
const junctionValues = await this.fetchJunction(
|
|
150
|
-
mapper.
|
|
150
|
+
mapper.selectionDb,
|
|
151
151
|
owningRelation,
|
|
152
152
|
ids,
|
|
153
153
|
joiningColumns,
|
|
@@ -162,9 +162,7 @@ export class RelationFetcher {
|
|
|
162
162
|
|
|
163
163
|
const primaryField = new FieldNode(targetEntity.primary, targetEntity.primary, {})
|
|
164
164
|
const inverseJoiningColumn = joiningColumns.targetColumn.columnName
|
|
165
|
-
const inverseIds = junctionValues
|
|
166
|
-
.map(it => it[inverseJoiningColumn])
|
|
167
|
-
.filter((it, index, arr) => arr.indexOf(it) === index)
|
|
165
|
+
const inverseIds = [...new Set(junctionValues.map(it => it[inverseJoiningColumn]))]
|
|
168
166
|
|
|
169
167
|
const queryWithWhere = objectNode
|
|
170
168
|
.withArgs({
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { Acl, Input, Model, Value } from '@contember/schema'
|
|
2
2
|
import { acceptFieldVisitor, getColumnName } from '@contember/schema-utils'
|
|
3
|
-
import { ColumnValueGetter, SelectHydrator, SelectRow } from './SelectHydrator'
|
|
4
|
-
import { Path, PathFactory } from './Path'
|
|
5
|
-
import { WhereBuilder } from './WhereBuilder'
|
|
3
|
+
import { ColumnValueGetter, SelectHydrator, SelectRow } from './SelectHydrator.js'
|
|
4
|
+
import { Path, PathFactory } from './Path.js'
|
|
5
|
+
import { WhereBuilder } from './WhereBuilder.js'
|
|
6
6
|
import { Client, LimitByGroupWrapper, SelectBuilder as DbSelectBuilder } from '@contember/database'
|
|
7
|
-
import { OrderByBuilder } from './OrderByBuilder'
|
|
8
|
-
import { FieldsVisitorFactory } from './handlers'
|
|
9
|
-
import { SelectExecutionHandler, SelectExecutionHandlerContext } from './SelectExecutionHandler'
|
|
10
|
-
import { MetaHandler } from './handlers'
|
|
11
|
-
import { Mapper } from '../Mapper'
|
|
12
|
-
import { FieldNode, ObjectNode } from '../../inputProcessing'
|
|
13
|
-
import { assertNever } from '../../utils'
|
|
14
|
-
import { PredicateFactory } from '../../acl'
|
|
7
|
+
import { OrderByBuilder } from './OrderByBuilder.js'
|
|
8
|
+
import { FieldsVisitorFactory } from './handlers/index.js'
|
|
9
|
+
import { SelectExecutionHandler, SelectExecutionHandlerContext } from './SelectExecutionHandler.js'
|
|
10
|
+
import { MetaHandler } from './handlers/index.js'
|
|
11
|
+
import { Mapper } from '../Mapper.js'
|
|
12
|
+
import { FieldNode, ObjectNode } from '../../inputProcessing/index.js'
|
|
13
|
+
import { assertNever } from '../../utils/index.js'
|
|
14
|
+
import { PredicateFactory } from '../../acl/index.js'
|
|
15
15
|
|
|
16
16
|
export class SelectBuilder {
|
|
17
17
|
private resolver: (value: SelectRow[]) => void = () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SelectBuilder } from './SelectBuilder'
|
|
2
|
-
import { SelectHydrator } from './SelectHydrator'
|
|
1
|
+
import { SelectBuilder } from './SelectBuilder.js'
|
|
2
|
+
import { SelectHydrator } from './SelectHydrator.js'
|
|
3
3
|
import { SelectBuilder as DbSelectBuilder } from '@contember/database'
|
|
4
4
|
import { Model } from '@contember/schema'
|
|
5
5
|
|