graphql/yoga-server/docs/integrations/z-other-environments #3162
Replies: 1 comment
-
To add graphql yoga to nuxt, create an endpoint i.e. import { createYoga } from 'graphql-yoga'
import schema from '~/graphql/schema'
const yoga = createYoga({ schema, graphqlEndpoint: '/api/graphql' })
export default fromNodeMiddleware(yoga) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
graphql/yoga-server/docs/integrations/z-other-environments
If you have a different environment that you want to integrate with, you can implement your middleware/handler like the example below.
https://the-guild.dev/graphql/yoga-server/docs/integrations/z-other-environments
Beta Was this translation helpful? Give feedback.
All reactions