hackernews-node/node_modules/graphql-middleware/dist/middleware.js
/**
 *
 * @param schema
 * @param middlewares
 *
 * Apply middleware to resolvers and return generated schema.
 *
 */
@param schema
@param middlewares

Apply middleware to resolvers and return generated schema.
@param schema @param middlewares Apply middleware to resolvers and return generated schema .
function applyMiddleware(schema) {
    var middlewares = [];
    for (var _i = 1; _i < arguments.length; _i++) {
        middlewares[_i - 1] = arguments[_i];
    }
    return applyMiddlewareWithOptions.apply(void 0, [schema,
        { onlyDeclaredResolvers: false }].concat(middlewares));
}
function applyMiddleware ( schema ) { var middlewares = [ ] ; for ( var _i = 1 ; _i < arguments . length ; _i ++ ) { middlewares [ _i - 1 ] = arguments [ _i ] ; } return applyMiddlewareWithOptions . apply ( void 0 , [ schema , { onlyDeclaredResolvers : false } ] . concat ( middlewares ) ) ; }
@param schema
 @param middlewares
@param schema @param middlewares