Prisma

P

Prisma

The official Discord server of Prisma! Find us online at prisma.io

Join

is Turso/Libsql dead?

Are you killing Libsql going forward? Prisma v7 removes adapter and studio from config which makes it work. Are you planning to fix things for Libsql / plan to bring back compatibility for Libsql in v7 in future release (v7.1.0?)?

NestJS + Prisma 7 + Planetscale

Hi, I iave a some issue but I cant figute out why.

NestJS - Prisma runtime error

i am getting the following runtime error ``` [Nest] 59978 - 11/25/2025, 5:34:57 PM ERROR [ExceptionHandler] TypeError: Cannot read properties of undefined (reading '__internal') at new t (/hermes/node_modules/@prisma/client/src/runtime/getPrismaClient.ts:239:27) at new PrismaService (/hermes/src/prisma/prisma.service.ts:5:8)...

Cannot find module '../../../generated/prisma/index.js' in NestJs

I’m working on a NestJS project where the Prisma Client is generated into a custom output directory using this generator config. version "@prisma/client": "^7.0.0",...

React Router V7 Prisma Support (Exports is not defined)

can someone assist me please? in my schema i have the following ```generator client { output = "../generated/prisma"...
No description

Canadian region request for Prisma Postgres

Prisma Postgres web page says to request additional regions in Discord. Working on a product that requires all data reside in Canada.

Can't upgrade plan to Business

Attempting to upgrade my plan via /billing/plans/change from Starter -> Business. Popup modal appears, click upgrade but request appears to timeout and no change to the plan is made. No console logs.

prisma extension not aware that i'm still on version 6.15

my vscode extension has updated, and i'm getting an error in vscode, eg:
The datasource property `url` is no longer supported in schema files. Move connection URLs for Migrate to `prisma.config.ts` and pass either `adapter` for a direct database connection or `accelerateUrl` for Accelerate to the `PrismaClient` constructor. See https://pris.ly/d/config-datasource and https://pris.ly/d/prisma7-client-configPrisma
The datasource property `url` is no longer supported in schema files. Move connection URLs for Migrate to `prisma.config.ts` and pass either `adapter` for a direct database connection or `accelerateUrl` for Accelerate to the `PrismaClient` constructor. See https://pris.ly/d/config-datasource and https://pris.ly/d/prisma7-client-configPrisma
i attempted to upgrade to 7, but i'll probably hold off on that for a few months - but it's annoying that the vscode extension is unaware of the prisma version i'm using, and giving me an in-editor error on something that was fine before the p7 release....

Logging with Prisma v7

Hey all, given Prisma v7 now requires we use adapters when connecting to a database (see here - https://www.prisma.io/docs/orm/more/upgrade-guides/upgrading-versions/upgrading-to-prisma-7#driver-adapters-and-client-instantiation), how do we continue to use logging via emitted events i.e. the example here https://www.prisma.io/docs/orm/prisma-client/observability-and-logging/logging ? Thestdout option works fine (outputs logs to stdout), but it seems like the below example snippet from the docs no longer works i.e. doesn't trigger an event and then console.log output. As a result, it's no longer possible to have a custom logger. ``` prisma.$on('query', (e) => { console.log('Query: ' + e.query)...

are breaking changes for configuration only?

Hello world!, I'm still using Prisma 5 and I would like to update to Prisma 7. Are the breaking changes related to configuration only? or ORM typescript code too? thank u!

Prisma 7 Adapter Error on MySQL

Auth error: [Error [DriverAdapterError]: pool timeout: failed to retrieve a connection from pool after 10000ms (pool connections: active=0 idle=0 limit=5)] { clientVersion: '7.0.0', [cause]: [Object] }...
No description

ambiguous column name: value when running prisma studio

so prisma v7 new studio aggregates data into value column
with "count" as (select cast(coalesce(count(*), 0) as text) as "value" from "public"."verification" where true) select "value", "identifier", "id", "updatedAt", "createdAt", "expiresAt", "count"."value" as "__ps_count__" from "public"."verification", "count" where true limit $1 offset 0
with "count" as (select cast(coalesce(count(*), 0) as text) as "value" from "public"."verification" where true) select "value", "identifier", "id", "updatedAt", "createdAt", "expiresAt", "count"."value" as "__ps_count__" from "public"."verification", "count" where true limit $1 offset 0
which makes me unable to use default column name "value" shouldn't all internal column names be with _ or something to not clash common wording? ...

Multi Schema files not being detected in ElysiaJS

I have a setup in ElysiaJS where my schema files are inside a directory called models, this has worked all along until Prisma 7, now my data models from other schema files are not being detected in schema.prisma when I generate. Below is just an example ```prisma model User {...

TypeError: Cannot read properties of undefined (reading '__internal')

I upgraded to Prisma 7, and when I try to start my project, it starts giving an error in @prisma/client and I don't know why, everything is configured correctly.
No description

Best practice for switching Prisma databases based on request host?

Hey everyone! I have a question about multi-tenant architecture using Prisma. I need a single Node.js API to connect to different databases depending on the incoming request’s host. Right now, my approach is to create multiple PrismaClient instances, one for each database, and then attach the correct instance to req based on the Host header....

Issue: Prisma 7 prisma failing on Vercel with "Missing required environment variable: DATABASE_URL

Environment: Prisma ORM v7.0.0 (upgraded from v6.19) Next.js 16.0.3 Turborepo monorepo with pnpm...
No description

No datasource property

Why is there no datasource property? I'm trying to migrate to prisma v7
No description

Prisma 7 on AWS Lambda

Has anyone deployed prisma 7 to aws lambda? i followed the upgrade document and switched to prisma-client from prisma-client-js and removed the target binaries etc, but when deployed i just kept getting timeouts and it would exceed the 128mb limit on the lambda? has anyone successfully deployed v7 to lambda and offer any advice?...

P1001: Can't reach database server

I need help integrating Prisma v7 ORM + Supabase to my Nextjs, I always got P1001 error everytime I push my prisma to my supabase. I follow the steps in new version but still can't figured out. For Practice only This is my database url (EMPTY NO TABLES YET) ...
No description

Module not found: Can't resolve './enums.js'

Hello ! I migrate to v7 and i have problems. errors: ```...
No description