This a reproducible example for a bug found on prisma 5.15.0 with the preview feature "relationJoins".
- docker, or a running PostgreSQL database with the schema found in
init.sql
- npm
- Install the packages
npm install
- Generate the prisma client
npx prisma generate
- Start the database in another terminal
npm run setup
- Run the tests
npm test