Serve
Deployment
Node.js Frameworks
Introduction

Node.js Frameworks

💡

This page is currently under construction and expected to change. Please feel free to reach out to us directly in case you are having any troubles.

We highly recommend to use Mesh with Serve CLI in Node.js as described in Node.js guide. But if you want to use Mesh with a Node.js framework, you can use the createServeRuntime function from @graphql-mesh/serve-runtime package.

In this case, you have to pass your serve configuration inside createServeRuntime instead of exporting it serveConfig from mesh.config.ts file.

It handles Node.js request and response types which are IncomingMessage and ServerResponse.

If your framework has middlewares and so on, you can handle the response by yourself as in Fastify example.

Choose your framework from the list on the left to see an example.