mirror of
https://github.com/sergeyyarkov/next-apollo-graphql-setup.git
synced 2026-10-11 10:19:43 +03:00
8 lines
263 B
JavaScript
8 lines
263 B
JavaScript
import { ApolloServer } from 'apollo-server-micro'
|
|
import { schema } from '../../graphql'
|
|
|
|
const apolloServer = new ApolloServer({ schema })
|
|
|
|
export const config = { api: { bodyParser: false } }
|
|
export default apolloServer.createHandler({ path: '/api/graphql' })
|