-
Using Benzene with Node How do you propose we handle this on a TypeScript code base? Especially since the getting started guide has an example, albeit a JavaScript one, where types are used interchangeably: const server = createServer(async (req, res) => {
const rawBody = await readBody(req);
const result = await graphqlHTTP({
method: req.method,
headers: req.headers,
body: parseGraphQLBody(rawBody, req.headers["content-type"]),
});
res.writeHead(result.status, result.headers);
res.end(JSON.stringify(result.payload));
}); I'm just looking for best practices, and recommendations :) |
Beta Was this translation helpful? Give feedback.
Answered by
rfgamaral
Apr 28, 2021
Replies: 1 comment
-
On a second thought, I actually think this is an issue and should be fixed, see #39 (comment). |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
hoangvvo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On a second thought, I actually think this is an issue and should be fixed, see #39 (comment).