Prisma

P

Prisma

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

Join

queryRaw returns empty array

I am currently trying to implement vector search with Prisma and MariaDB. The problem I am facing is, that I have to use rawQuery since vectors are not supported by prisma and when I execute my raw Query through prisma.$queyRaw, I get an empty array back.. The exact same query run on DBeaver returns a result though. I am really confused here. What is going on?? My code:...

Postgres Adapter seems to not work with Planetscale Postgres Database.

It seems like the @prisma/adapter-pg does not work with planetscale postgres, every time I've tried i run into the "User denied access on db" error..

Linter error - multi file schema

Since I use the multi file schema, the linter show this error for all the models + db and client :"The generator "client" cannot be defined because a generator with that name already exists." / The model "x" cannot be defined because a model with that name already exists. How can I get rid of it ?...

no rust prisma client

When creating and using a Prisma client by combining PG adapters, is it necessary to install @prisma/client? If I continue using it the way I have been, there will be no more sources to use. If possible, can you also handle the migration and seeding tasks?...

dev migrations are failing with cdb due to multi-region enum cannot be modified

after prisma migrate dev i face this error I'm using cockroachdb Error: P3006 ...

Why I am getting typescript type error in my findOne function

``` export interface RoleService { findOne: <S extends NonNullable<RoleFindFirstArgs['select']>>( params: RequireAtLeastOne<Omit<NonNullable<RoleFindFirstArgs['where']>, 'type'>>, select: S,...

prisma extension do not lint/format multifile schema

prisma extension do not lint/format multifile schema? Any fixes ?

get more details on accelerate failures?

Is there any way to get more details on accelerate failures in production? I'm running in edge mode. I'd hope I could see more details for these failures in the web console or somehwere, but I cannot find them anywhere

Prisma ORM in cloudflare Worker (hono)

Is it possible to use Prisma in a Cloudflare Worker? I use Hono there, and I wanted to use Prisma for typing. I was told to use "driverAdapters," but that's outdated. Any tutorials on the best way? No client issues?...

Should the new typescript client and engine be excluded from source control?

There seem to be mixed messages about whether the new TypeScript engine and client should be excluded from source control. This page: https://www.prisma.io/docs/orm/prisma-client/setup-and-configuration/no-rust-engine doesn't mention excluding the engine but previous pages: https://www.prisma.io/docs/orm/prisma-schema/overview/generators#prisma-client do say to exclude the client (with a comment that this won't be necessary in the future) The issue I'm having is with the full paths that get created in the class.ts file which causes noise as different people build the client. ...

Will version 7 eliminate the rust engine for generating models and for schema migration?

Or will it continue to only eliminate it in prod? We'd like to avoid using binaries at all if possible....

Cloudflare Worker + MSSQL

Has anyone ever had any success connecting a Cloudflare Worker (or cloudflare worker + Durable object) to MSSQL? I think it's possible to do with containers, but wondering if we can do it without them, since they keep adding new library support to the workers, and there's also the connect() function.

nextjs breaking prisma?

I did 2 tests and I get the same results, all properties are unknown when updating next from 30 to 33. Anybody with the same problem?
No description

Prisma isn't doing joins.

Hi, I have just setup the relation strategy as we would like the ORM to use join queries. But I have noticed it just won't do a join, even after setting the preview feature and then trying the relationLoadStrategy. Here is a minifed version:...

Issue deploying on Cloudflare Workers with Prisma Accelerate + Prisma Postgres

Hi, when I am trying to deploy on Clouldflare Workers with Prisma Accelerate and Prisma Postgres. I am getting the following issues in the build and then when navigating to the page: In the build: ```...

Can prisma now work with Postgres FDW??

At my company the bosses are reluctant to migrate to postgres, so they stay at sqlserver 12.... One alternative would be using the foreign data wrappers to access and serve the sqlserver via postgres.... Can prisma now work with it correctly? The site says that it is a supported extension......

onDelete: Cascade slower with Generated PrismaClient (PlanetScale Adapter)

Hello 👋 Performance Issue with PlanetScale Adapter: Generated PrismaClient vs Direct @prisma/client Problem Description...

Vercel Deploy Error

I am using "@prisma/client": "^6.14.0", "prisma": "^6.14.0", generator client {...

Issue on vercel deploy

What is this issue on vercel deploy? I use neon db 2025-10-12T06:56:40.703Z [error] 2025-10-12T06:56:40.696Z ERROR [Better Auth]: PrismaClientKnownRequestError Error [PrismaClientKnownRequestError]: Invalid prisma.verification.create() invocation: ...
No description

Prisma accelerate + cockroach + edge deploy

Hello all! Can I use prisma accelerate to connect a nuxt app deployed to the edge with cockroach db? ChatGPT says it's not sure about it....