garph
garph copied to clipboard
Yoga Next.js Edge
export const config = {
runtime: 'edge'
}
export const schema = buildSchema({ g, resolvers })
// Next.JS + Yoga API
const yoga = createYoga({
schema,
graphqlEndpoint: '/api/graphql'
})
export default yoga.handleRequest
Just wanted to let you guys know that this is really neat and this is exactly what i was looking for! :) awesome!