stepci / garph

Fullstack GraphQL Framework for TypeScript
https://garph.dev
MIT License
1.31k stars 17 forks source link

Yoga Next.js Edge #62

Open mishushakov opened 1 year ago

mishushakov commented 1 year ago
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
Manubi commented 1 year ago

Just wanted to let you guys know that this is really neat and this is exactly what i was looking for! :) awesome!