graphql-middleware
graphql-middleware copied to clipboard
High memory and CPU usage with a noop graphql-middleware
We are experiencing very high memory usage when we add even a noop middleware to our express Apollo GraphQL application. Do we have an idea of what memory / CPU overhead we should expect with the graphql-middleware? Using the latest version (6.0.10).
Just add some more color to this issue. The schema in the application is big, however the middleware itself is not going anything interesting.
+const noopMiddleware = async (
+ resolve: any,
+ root: any,
+ args: any,
+ context: Context,
+ info: any
+) => {
+ return await resolve(root, args, context, info)
+}