-
Hello, I was wondering if GraphQL Mesh offers the following features for a gateway configuration:
I looked through https://graphql-mesh.com/docs/recipes/as-gateway and https://github.com/Urigo/graphql-mesh/tree/master/packages/cli/src/commands/serve, but couldn't figure it out. I am happy to make pull requests if these do not exist, just wanted to check first. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hi!
const expressPlayground = require('graphql-playground-middleware-express');
module.exports = expressPlayground({
endpoint: '/graphql',
});
serve:
handlers:
path: /playground
method: GET
handler: ./playground.js For the custom graphql endpoint path, the new version is on the way :) |
Beta Was this translation helpful? Give feedback.
-
Hi @ardatan is it still the best way and you still suggesting |
Beta Was this translation helpful? Give feedback.
Hi!
GraphQL Playground doesn't support new subscriptions websocket(graphql-ws) implementation and most of the new things like
defer
,stream
, Subscriptions with SSE. Also you can see the notice in their repo, GraphQL Playground is being merged into GraphiQL project so GraphiQL that GraphQL Helix(server impl we use) provides out-of-box is easier choice for us instead of doing different workarounds needed for GraphQL Playground. But you can still use it by providing its middleware in serve config or installing their desktop app.graphql/graphql-playground#1143
graphql/graphql-playground#1295
playground.js