prisma / docs

📚 Prisma Documentation
https://www.prisma.io/docs
Apache License 2.0
968 stars 750 forks source link

Request for Next.js.13 (App) router + Prisma documentation #5200

Open GavinSalcedo opened 11 months ago

GavinSalcedo commented 11 months ago

Discussed in https://github.com/prisma/prisma/discussions/20762

Originally posted by **GavinSalcedo** August 21, 2023 ### Question Is there an existing documentation for Next.js using the app directory integrating Prisma? I understand this should be straightforward for Next.js developers to understand and migrate from pages to app, however, I think it would also benefit other developers if given more reference. App router is becoming more stable and evidently effective than pages, so I would like to request to update the Prisma website documentation. Thanks for the considering this post. reference: https://www.prisma.io/docs/concepts/overview/prisma-in-your-stack/fullstack ### How to reproduce (optional) Click on this link to access the existing documentation - https://www.prisma.io/docs/concepts/overview/prisma-in-your-stack/fullstack _No response_ ### Expected behavior (optional) _No response_ ### Information about Prisma Schema, Client Queries and Environment (optional) _No response_
### Tasks
carvalhochris commented 7 months ago

Hello

I have a working Next app router with Prisma: https://github.com/carvalhochris/pure-ts

navdeep-soni commented 4 months ago

Hello

I have a working Next app router with Prisma: https://github.com/carvalhochris/pure-ts

I think the problem starts when you have to use common scenarios like add, delete, or fetch conditional data by clicking a button. The only way is to create API (route.ts) in the app folder and call them on the client side