Skip to content

Commit

Permalink
Needs endpoint to handle /graphql/health or for SSE /graphql/stream
Browse files Browse the repository at this point in the history
  • Loading branch information
dthyresson committed Aug 16, 2023
1 parent 6a52a79 commit 2b978c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/fastify/src/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export async function redwoodFastifyGraphQLServer(
// Would add PUT if need to support GraphQL SSE single connection mode
// with the graphql-yoga plugin-graphql-sse plugin and /stream endpoint
fastify.route({
url: yoga.graphqlEndpoint,
url: `${yoga.graphqlEndpoint}/*`,
method: ['GET', 'POST', 'OPTIONS'],
handler: async (req, reply) => {
const response = await yoga.handleNodeRequest(req, {
Expand Down

0 comments on commit 2b978c5

Please sign in to comment.