UNPKG

1.81 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.GraphQLSchemaBuilderModule = void 0;
4const tslib_1 = require("tslib");
5const common_1 = require("@nestjs/common");
6const inspector_1 = require("@nestjs/core/inspector");
7const factories_1 = require("./factories/factories");
8const graphql_schema_factory_1 = require("./graphql-schema.factory");
9const file_system_helper_1 = require("./helpers/file-system.helper");
10const orphaned_reference_registry_1 = require("./services/orphaned-reference.registry");
11const type_fields_accessor_1 = require("./services/type-fields.accessor");
12const type_mapper_service_1 = require("./services/type-mapper.service");
13const type_definitions_storage_1 = require("./storages/type-definitions.storage");
14const type_definitions_generator_1 = require("./type-definitions.generator");
15let GraphQLSchemaBuilderModule = class GraphQLSchemaBuilderModule {
16};
17exports.GraphQLSchemaBuilderModule = GraphQLSchemaBuilderModule;
18exports.GraphQLSchemaBuilderModule = GraphQLSchemaBuilderModule = tslib_1.__decorate([
19 (0, common_1.Module)({
20 providers: [
21 ...factories_1.schemaBuilderFactories,
22 graphql_schema_factory_1.GraphQLSchemaFactory,
23 type_definitions_generator_1.TypeDefinitionsGenerator,
24 file_system_helper_1.FileSystemHelper,
25 type_definitions_storage_1.TypeDefinitionsStorage,
26 type_mapper_service_1.TypeMapperService,
27 type_fields_accessor_1.TypeFieldsAccessor,
28 orphaned_reference_registry_1.OrphanedReferenceRegistry,
29 ],
30 exports: [graphql_schema_factory_1.GraphQLSchemaFactory, file_system_helper_1.FileSystemHelper],
31 })
32], GraphQLSchemaBuilderModule);
33inspector_1.InitializeOnPreviewAllowlist.add(GraphQLSchemaBuilderModule);