Prisma

P

Prisma

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

Join

Prisma.validator is gone but docs still have it and not sure the alternative

Docs: https://www.prisma.io/docs/orm/prisma-client/type-safety/prisma-validator PR that removes it: https://github.com/prisma/prisma/pull/28059 What am I supposed to do now? Is there an alternative, this seems to be a breaking change I cannot find discussed in the release notes: https://github.com/prisma/prisma/releases ...

Prisma not working on Vercel. Missing engine error

Hi, I am trying to deploy my web app on vercel but I am currently getting `` Error [PrismaClientInitializationError]: Invalid prisma.loans.findMany()` invocation: ...
No description

6.16 @prisma/adapter-pg

Doesn't using the driver adapter (@prisma/adapter-pg) in version 6.16 eliminate the need for @prisma/client?

Has the Prisma client generic type changed? 6.16

Has the Prisma client generic type changed? 6.16
export class Database extends PrismaClient<Prisma.PrismaClientOptions, ‘query|error|info|warn’> {}
export class Database extends PrismaClient<Prisma.PrismaClientOptions, ‘query|error|info|warn’> {}
...

How do I use the new prisma.config.ts file?

How do I use the new prisma.config.ts file?

Using the new `prisma-client` with NextJS

It it normal that the new prisma client isn't compatible with the browser? When using prisma models in my client side next components, I get Cannot find module 'node:fs': Unsupported external type Url for commonjs reference

Multi-file prisma schema setup not working.

I currently have the following setup: ``` root/ prisma/...

"introspect" operation failed

I am getting the error "introspect" operation failed when trying to access the Prisma Studio. Is there an issue going on?

Prisma Client not found after packaging with electron-forge with vite template

I've been having this issue where after successfully built the electron app it cant detect any prisma relate and returns this error. Can anyone help me with this issue. I do understand that prisma is in compatible with electron but some how there are solutions for electron-vite but not on forge. Here is the github repo link: https://github.com/efeliza00/guidance-counselor-system all i want is to make it work...
No description

How to exclude Supabase auth schema from Prisma migrations but still keep it updated?

I have a database on Supabase, and I’m using Prisma migrations. Since I have multiple schemas with multiple files, how can I exclude the Supabase auth schema when generating a migration? I still need the auth schema because of its relationship with my user_profiles table. Also, how can I keep the auth schema updated while ignoring it in my Prisma migrations?...

PrismaClientInitializationError]: error: Environment variable not found: DATABASE_URL.

I really need help, i spent like 2 hours now on this and i just cant fix it. 1. I am on the latest's version of the client 2. I have checked, i have a .env in root and it has DATABASE_URL in it 3. I tried using the new prisma.config.ts (and without):...

Prisma Client could not locate the Query Engine

I have a project that uses Next.js 15.3.5 and prisma 6.13.0 and @prisma/client 6.13.0. Deployed on Supabase Postgres. Project is deployed on Vercel. During development I work on a local Supabase instance. Things were working fine. I had made small changes to the schema over the last couple of weeks, so yesterday I finally did a migration and updated the Supabase DB as well. But somehow after that I am getting the below error....

Want a Buddy

Hello everyone, I’m currently working in the IT field and looking for a reliable coworker to collaborate with efficiently. This is a great opportunity to grow together and increase profits. Preferred qualifications:...

NextJS PrismaPostgress Underlying Error:Error: {"message":"Unexpected Server Error"}

hey everyone, i am setting up a nextjs project with prisma postgress but when i type this command npx prisma init --db --output ../app/generated/prisma i get this error...
No description

Getting errors in deployed app , I am using Coolify .

Error validating data source db: the URL must start with the protocol prisma:// or prisma+postgres:// everything is working well on my local dev environment . I am using Postgress that is hosted on Coolify...

"prisma-client" CI Best Practices

I'm looking at migrating to the "prisma-client" instead of "prisma-client-js" but I'm curious what the thoughts on CI best practice for this are. Before I was grabbing the @prisma/client and putting it into an artifact for differnt steps to retreive. That was a 60MB file. The new generated client is 130MB....

How to upgrade!

Hi there, I can't upgrade Prisma. I created two databases in Vercel. I deleted the old one. But, the old one still shows up when I try to upgrade my package, so it wont let me pay. How do I solve this? Urgently if possible!

Duplicate joins & offsets in count expression

Hi! I'm doing some complex count operations and the query builder is making some decisions that I do not understand. Essentially, I'm doing this query: ```typescript...

Is `attachDatabasePool` needed if I am using Prisma Accelerate?

I have a NextJS app that's hosted on Vercel. The app uses Prisma Postgres with Prisma Accelerate. As far as I understand "Prisma Postgres provides built-in connection pooling by default, enabled by Prisma Accelerate. By using Prisma Postgres, you get the benefits of connection pooling without having to configure anything." https://www.prisma.io/docs/postgres/database/connection-pooling...

Prisma Schema Config

I am encountering some issues with my data model when I upgraded to version 6 of prisma. The issue I am encountering is when I navigate to the model, it will give me linting errors related to the redundancy of the model. Any time I click into any of the data models, the linting errors are removed. I have screenshot what this looks like in vscode. Here is my config. My current assumption is that the config is currently configured where it is identifying the prisma client schema along with all of my other schema files. I am curious what the fix is for this though. When I try to modify the filepath to include special characters in the config (i.e., schema:"./prisma/models/*.prisma" it does not recognize this pattern). Curious how I should modify my config. Thanks for any help...
No description