This is the codebase from my article: Building Typesafe Full Stack App w/ Apollo Server 4, Prisma, Pothos, Next, & TS
Check out the article here
First we need to install of the deps
yarn
Set up Prisma
yarn prisma db push
Seed Prisma
yarn prisma db seed
Everytime you update your schema in Prisma be sure run
yarn prisma generate
to sync the types generated by Prisma to Pothos