Prisma

P

Prisma

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

Join

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....

Backup Restore is not work

When I try to use the backup restore function, it only shows the error as shown in the image. How can I solve this problem and successfully complete the restoration?
No description

Issue with the new rust-free prisma query engine with adapter-pg error object format

trying the new prisma rust free engine, we've noticed different error.meta structure! (basic err case of unique constraint violation) 1. why https://github.com/prisma/prisma/blob/423b58507879080bdc1273ca5d30b3de87e5b766/packages/driver-adapter-utils/src/error.ts are not exported? 2. error.message seems not properly crafted, such (check attached) 3. error.meta.target is not there anymore!...
No description

Prisma is automatically converting @db.Text to JSON?

Prisma is automatically converting @db.Text to JSON? What if it's not JSON? currently it's throwing an image and in the schema we have defined that field as @db.Text but for some reason Prisma is still trying to convert to JSON?

Seeding not working in prisma.config.ts

Our CLIs have been screaming at us for a while, to upgrade from the package.json "prisma: {}" property, to the prisma.config.ts file. With this message:
warn The configuration property `package.json#prisma` is deprecated and will be removed in Prisma 7. Please migrate to a Prisma config file (e.g., `prisma.config.ts`).
For more information, see: https://pris.ly/prisma-config
warn The configuration property `package.json#prisma` is deprecated and will be removed in Prisma 7. Please migrate to a Prisma config file (e.g., `prisma.config.ts`).
For more information, see: https://pris.ly/prisma-config
...

I need to join two tables that don't have a direct link, by using nested data

I have table 1 that looks like { NumberIdentifier: "Test", NestedData: { OtherIdentifier: "Test2"...

Azure AAD Identity Prisma Client

Hello, good morning. I have a question related to Azure AAD connection + Prisma Client. There is a way in Azure to create a identity provider for an app conected to Azure Postgres to avoid connections with plain password for security. With @azure/identity library the password is taken in runtime. I wanted to know if there is an already done solution for this or a good way/practice to do it. Thanks!

Prisma postgress multi schema + Replica

Hello, I have a question. I’m working with a PostgreSQL database managed through Prisma. For each customer, I plan to create a separate schema to ensure that their data remains isolated and not mixed with other customers’ data. The database structure will be exactly the same across all schemas — only the schema name will change. I would like to know: ...

upgrading from v5 to v6

Hi, hope whoever reads this is doing good. I got this Prisma error after upgrading from v5 to v6. The reason I upgraded is because I wanted to split my big schema into multiple .prisma files inside a /models folder. ...
No description

Prisma migrate dev shadow database error

Problem When using Prisma with cloud-hosted databases (Prisma Postgres, Neon, Supabase, etc.), prisma migrate dev fails with shadow database errors like: Error: P3006 Migration 20251005080724_init failed to apply cleanly to the shadow database. Error: type "ParentageRole" already exists...

Accidental Seeding of Production Database

I accidentally ran my seed command from the development environment and it overwrote my production database (connected via Vercel) with local data. Is there any way to restore or recover the previous state of the database? I’d really appreciate guidance on whether Prisma (or the underlying provider) keeps automatic backups or snapshots that I can revert to. Prisma dashboard shows no backups...

Prisma postgress. Server has closed the connection error, please help.

{ "timestamp": "2025-10-08T14:08:49.655Z", "tests": [ { "name": "Environment check",...

Server has closed the connection.

Error: P1017: Server has closed the connection.  ELIFECYCLE  Command failed with exit code 1. Error: Command "pnpm i; pnpm run prisma:generate; pnpm run migrate:deploy" exited with 1...

CRITICAL CONNECTION ISSUE!!!

Bug description: We are experiencing a critical production issue where all connections to Prisma.io are failing completely. Current situation: Cannot connect to any database instances through Prisma...

Please, help me with this errors, I've got several customers complaining.

✖ Introspecting based on datasource defined in prisma\schema.prisma Error: P1017 Server has closed the connection....

For Rust-free, what's the rationale for adding "Model" suffixes to every generated model export in P

Can anyone from the Prisma team explain the rationale behind renaming every single model export to now include a Model suffix at the end of each type (for example, UserModel, PostModel, etc.)? I'm curious what motivated this change, and why that same naming convention isn’t applied to the browser types in the generated Prisma Client. https://www.prisma.io/docs/orm/prisma-schema/overview/generators#4-use-prisma-client-in-your-application...
No description

Core Prisma types (like Middleware Params) unresolved in V6.16.3

Hello everyone, I'm running into a persistent TypeScript type resolution issue with Prisma and I'm hoping for some insight. The Problem...

Prisma Studio Layout Issue

When I view the Prisma studio it shrink and can I know why it appears like that?
No description

generated type

Hei guys. Can someone explain to me how i can access my schema model generated type( PostCreateInput). This is how im importing PrismaClient and Prisma object: import { PrismaClient, Prisma } from "../../prisma/generated/client"; This other way of importing PrismaClient is not working for me. import { PrismaClient } from "@prisma/client";...

Rust-Free Is 3x Slower

Has this been already reported? On a local Postgres database I was getting a massive number of transaction timeout messages running out seed script. Ended up with this config to avoid those. ``` new PrismaClient({ transactionOptions: { maxWait: 300000,...