Skip to content

Handling large header #6663

Closed Answered by arnabk
arnabk asked this question in Q&A
Discussion options

You must be logged in to vote

For those coming to this if you want to get around it, use expressJS and wrap graphql-mesh handler. Here is an example that worked for me.

import express from 'express';
import { createBuiltMeshHTTPHandler } from '../.mesh';

const app = express();
const port = process.env.PORT || 4001;

app.use('*', createBuiltMeshHTTPHandler());

app.listen(port, () => {
  console.log(`Example app listening on port ${port}`)
});

process.on('SIGINT', () => {
  console.log("Caught interrupt signal");
  process.exit();
});

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by arnabk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant