DEV Community

Discussion on: Create a serverless API with TypeScript, GraphQL and MongoDB

Collapse
 
akhilaariyachandra profile image
Akhila Ariyachandra

Yes you can use this in a Next.js API route. Just make sure to this to the end of the graphql.ts file.

export const config = {
  api: {
    bodyParser: false,
  },
}
Collapse
 
jossdz profile image
Jose Carlos Correa

Thank you !

I'm having an issue with the deploy, hope to fix it soon.