function loadSchemaSync(schemaPointers, options) {
    var sources = loadTypedefsSync(schemaPointers, __assign({ filterKinds: OPERATION_KINDS }, options));
    var _a = collectSchemasAndTypeDefs(sources), schemas = _a.schemas, typeDefs = _a.typeDefs;
    var mergeSchemasOptions = __assign({ schemas: schemas,
        typeDefs: typeDefs }, options);
    var schema = mergeSchemas(mergeSchemasOptions);
    if (options === null || options === void 0 ? void 0 : options.includeSources) {
        includeSources(schema, sources);
    }
    return schema;
}
/**
 * Synchronously loads a schema from the provided pointers.
 * @param schemaPointers Pointers to the sources to load the schema from
 * @param options Additional options
 */
Synchronously loads a schema from the provided pointers.
@param schemaPointers Pointers to the sources to load the schema from
@param options Additional options
Synchronously loads a schema from the provided pointers . @param schemaPointers Pointers to the sources to load the schema from @param options Additional options
function loadSchemaSync(schemaPointers, options) {
    var sources = loadTypedefsSync(schemaPointers, __assign({ filterKinds: OPERATION_KINDS }, options));
    var _a = collectSchemasAndTypeDefs(sources), schemas = _a.schemas, typeDefs = _a.typeDefs;
    var mergeSchemasOptions = __assign({ schemas: schemas,
        typeDefs: typeDefs }, options);
    var schema = mergeSchemas(mergeSchemasOptions);
    if (options === null || options === void 0 ? void 0 : options.includeSources) {
        includeSources(schema, sources);
    }
    return schema;
}
function loadSchemaSync ( schemaPointers , options ) { var sources = loadTypedefsSync ( schemaPointers , __assign ( { filterKinds : OPERATION_KINDS } , options ) ) ; var _a = collectSchemasAndTypeDefs ( sources ) , schemas = _a . schemas , typeDefs = _a . typeDefs ; var mergeSchemasOptions = __assign ( { schemas : schemas , typeDefs : typeDefs } , options ) ; var schema = mergeSchemas ( mergeSchemasOptions ) ; if ( options === null || options === void 0 ? void 0 : options . includeSources ) { includeSources ( schema , sources ) ; } return schema ; }
Synchronously loads a schema from the provided pointers.
Synchronously loads a schema from the provided pointers .