async function mergeSchemasAsync(config) {
    const [typeDefs, resolvers, extensions] = await Promise.all([
        mergeTypes(config),
        Promise.all(config.schemas.map(async (schema) => utils.getResolversFromSchema(schema))).then(extractedResolvers => mergeResolvers([...extractedResolvers, ...ensureResolvers(config)], config)),
        Promise.all(config.schemas.map(async (schema) => extractExtensionsFromSchema(schema))).then(extractedExtensions => 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
async function mergeSchemasAsync(config) {
    const [typeDefs, resolvers, extensions] = await Promise.all([
        mergeTypes(config),
        Promise.all(config.schemas.map(async (schema) => utils.getResolversFromSchema(schema))).then(extractedResolvers => mergeResolvers([...extractedResolvers, ...ensureResolvers(config)], config)),
        Promise.all(config.schemas.map(async (schema) => extractExtensionsFromSchema(schema))).then(extractedExtensions => mergeExtensions(extractedExtensions)),
    ]);
    return makeSchema({ resolvers, typeDefs, extensions }, config);
}
async function mergeSchemasAsync ( config ) { const [ typeDefs , resolvers , extensions ] = await Promise . all ( [ mergeTypes ( config ) , Promise . all ( config . schemas . map ( async ( schema ) => utils . getResolversFromSchema ( schema ) ) ) . then ( extractedResolvers => mergeResolvers ( [ ... extractedResolvers , ... ensureResolvers ( config ) ] , config ) ) , Promise . all ( config . schemas . map ( async ( schema ) => extractExtensionsFromSchema ( schema ) ) ) . then ( extractedExtensions => 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 .