DEV Community

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

akhilaariyachandra profile image
Akhila Ariyachandra Author

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,
jossdz profile image
Jose Carlos Correa

Thank you !

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