2023-12-11 12:54:57 +03:00
|
|
|
diff --git a/dist/schema-builder/graphql-schema.factory.js b/dist/schema-builder/graphql-schema.factory.js
|
2024-03-20 18:23:46 +03:00
|
|
|
index f349a6e..425815c 100644
|
2023-12-11 12:54:57 +03:00
|
|
|
--- a/dist/schema-builder/graphql-schema.factory.js
|
|
|
|
+++ b/dist/schema-builder/graphql-schema.factory.js
|
2024-03-20 18:23:46 +03:00
|
|
|
@@ -32,6 +32,7 @@ let GraphQLSchemaFactory = GraphQLSchemaFactory_1 = class GraphQLSchemaFactory {
|
2023-10-03 11:17:13 +03:00
|
|
|
else {
|
|
|
|
options = scalarsOrOptions;
|
|
|
|
}
|
|
|
|
+ this.typeDefinitionsGenerator.clearTypeDefinitionStorage();
|
|
|
|
lazy_metadata_storage_1.LazyMetadataStorage.load(resolvers);
|
|
|
|
type_metadata_storage_1.TypeMetadataStorage.compile(options.orphanedTypes);
|
|
|
|
this.typeDefinitionsGenerator.generate(options);
|
2023-12-11 12:54:57 +03:00
|
|
|
diff --git a/dist/schema-builder/storages/type-definitions.storage.js b/dist/schema-builder/storages/type-definitions.storage.js
|
2024-03-20 18:23:46 +03:00
|
|
|
index a19dee7..466ee86 100644
|
2023-12-11 12:54:57 +03:00
|
|
|
--- a/dist/schema-builder/storages/type-definitions.storage.js
|
|
|
|
+++ b/dist/schema-builder/storages/type-definitions.storage.js
|
2024-03-20 18:23:46 +03:00
|
|
|
@@ -81,6 +81,10 @@ let TypeDefinitionsStorage = class TypeDefinitionsStorage {
|
2023-10-03 11:17:13 +03:00
|
|
|
}
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
+ clear() {
|
|
|
|
+ this.inputTypeDefinitionsLinks = null;
|
|
|
|
+ this.outputTypeDefinitionsLinks = null;
|
|
|
|
+ }
|
|
|
|
};
|
2024-03-20 18:23:46 +03:00
|
|
|
exports.TypeDefinitionsStorage = TypeDefinitionsStorage;
|
2023-10-03 11:17:13 +03:00
|
|
|
exports.TypeDefinitionsStorage = TypeDefinitionsStorage = tslib_1.__decorate([
|
2023-12-11 12:54:57 +03:00
|
|
|
diff --git a/dist/schema-builder/type-definitions.generator.js b/dist/schema-builder/type-definitions.generator.js
|
2024-03-20 18:23:46 +03:00
|
|
|
index d5423f1..701a3b2 100644
|
2023-12-11 12:54:57 +03:00
|
|
|
--- a/dist/schema-builder/type-definitions.generator.js
|
|
|
|
+++ b/dist/schema-builder/type-definitions.generator.js
|
2024-03-20 18:23:46 +03:00
|
|
|
@@ -26,6 +26,9 @@ let TypeDefinitionsGenerator = class TypeDefinitionsGenerator {
|
2023-10-03 11:17:13 +03:00
|
|
|
this.generateObjectTypeDefs(options);
|
|
|
|
this.generateInputTypeDefs(options);
|
|
|
|
}
|
|
|
|
+ clearTypeDefinitionStorage() {
|
|
|
|
+ this.typeDefinitionsStorage.clear();
|
|
|
|
+ }
|
|
|
|
generateInputTypeDefs(options) {
|
|
|
|
const metadata = type_metadata_storage_1.TypeMetadataStorage.getInputTypesMetadata();
|
|
|
|
const inputTypeDefs = metadata.map((metadata) => this.inputTypeDefinitionFactory.create(metadata, options));
|