function mergeSchemas(config) {
    const typeDefs = mergeTypes(config);
    const extractedResolvers = [];
    const extractedExtensions = [];
    for (const schema of config.schemas) {
        extractedResolvers.push(utils.getResolversFromSchema(schema));
        extractedExtensions.push(extractExtensionsFromSchema(schema));
    }
    extractedResolvers.push(...ensureResolvers(config));
    const resolvers = mergeResolvers(extractedResolvers, config);
    const extensions = mergeExtensions(extractedExtensions);
    return makeSchema({ resolvers, typeDefs, extensions }, config);
}
/**
 * Synchronously merges multiple schemas, typeDefinitions and/or resolvers into a single schema.
 * @param config Configuration object
 */
Synchronously merges multiple schemas, typeDefinitions and/or resolvers into a single schema.
@param config Configuration object
Synchronously merges multiple schemas typeDefinitions and / or resolvers into a single schema . @param config Configuration object
function mergeSchemas(config) {
    const typeDefs = mergeTypes(config);
    const extractedResolvers = [];
    const extractedExtensions = [];
    for (const schema of config.schemas) {
        extractedResolvers.push(utils.getResolversFromSchema(schema));
        extractedExtensions.push(extractExtensionsFromSchema(schema));
    }
    extractedResolvers.push(...ensureResolvers(config));
    const resolvers = mergeResolvers(extractedResolvers, config);
    const extensions = mergeExtensions(extractedExtensions);
    return makeSchema({ resolvers, typeDefs, extensions }, config);
}
function mergeSchemas ( config ) { const typeDefs = mergeTypes ( config ) ; const extractedResolvers = [ ] ; const extractedExtensions = [ ] ; for ( const schema of config . schemas ) { extractedResolvers . push ( utils . getResolversFromSchema ( schema ) ) ; extractedExtensions . push ( extractExtensionsFromSchema ( schema ) ) ; } extractedResolvers . push ( ... ensureResolvers ( config ) ) ; const resolvers = mergeResolvers ( extractedResolvers , config ) ; const extensions = mergeExtensions ( extractedExtensions ) ; return makeSchema ( { resolvers , typeDefs , extensions } , config ) ; }
Synchronously merges multiple schemas, typeDefinitions and/or resolvers into a single schema.
Synchronously merges multiple schemas typeDefinitions and / or resolvers into a single schema .