Prisma

P

Prisma

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

Join

Difficulties migrating PostgreSQL to v7.0.0

Hello, PS: Im using PostgreSQL v17.5 I am trying to upgrade from PrismaORM v6.5 to v7 and im finding the following error:...
No description

How to use LibSql with Prisma 7.0.0?

this is how I used to do it but now that adapter and studio configs are deprecated and datasource doesn't allow me to set DATABASE_TOKEN, how should i do it? ``` export default defineConfig({ experimental: {...

Problem with mapped enums in 7.0.0?

I have a mapped enum in my schema, something along the lines of: ``` enum SuggestionStatus { PENDING @map("pending") ACCEPTED @map("accepted")...

Migrationg to 7.0.0

We migrated to v7 from 6.19.0 and now we just get a TON of errors
Module '"@prisma/client"' has no exported member 'FileType'.ts(2305)
Module '"@prisma/client"' has no exported member 'FileType'.ts(2305)
for ALL files

The datasource property `directUrl` is no longer supported in schema files. Move connection URLs to

I just got this typescript error on datasource db { provider = "postgresql" url = env("DATABASE_URL") directUrl = env("DIRECT_URL") }...

Failed to parse config file at "./prisma.config.ts" when using an adapter

I followed this guide exactly: https://www.prisma.io/docs/guides/cloudflare-d1 and on step 4.3, I get the error: Failed to parse syntax of config file at "./prisma.config.ts" ...

Unique constraint failed on the constraint: `dbo.User`

Hello, I'm new to prisma and am learning how to use the createMany method. I keep receiving the error stated in the title but don't understand why. When I use the create method and run the script it successfully creates a new user.
No description

New Vercel project doesn't create new project in Prisma Data Platform

My Prisma Postgres integration is managed through Vercel. When I create a new Nextjs project in Vercel and create a new Prisma database for it, the new database appears in PDP under an existing project instead of creating a new Prisma project. Does anyone know how to get Vercel to create a new project in Prisma Data Platform? Thanks....

How IDo Get DMMF ?

hello Guys I wanna get The DMMF, how can get That ? I've tried prisma/Internals but i wont find it !...

Prisma x CosmosDB

hi guys, our team is facing some speed issues when going from local to serverless on our prisma x mongoDB project (Cosmos DB is used on Azure). we noticed that removing some of the joins is a bit faster, but we're still facing 2-10 seconds load times for objects when react is trying to fetch them. we already implemented infinite scroll and pagination when applicable. ...

Trouble connecting to db.prisma.io via pgbouncer

I debuged for 6+ hours on my own and could not connect to my prisma postgres instance via pgbouncer. I was able to do so with an RDS instance and a local postgres SQL instance. Please help me debug it I can successfully connect to the db.prisma.io instance from the pgbouncer VPS with this command ...

Trouble with search filters

let where: Prisma.ClinicWhereInput = baseWhere; if (diseaseTreatment && diseaseTreatment.specialization) { const specializations = diseaseTreatment.specialization.includes(",") ? diseaseTreatment.specialization.split(",").map(s => s.trim())...

Cannot use mssql to execute `npx prisma db pull --schema myschema.prisma` with AAD credentials

I am trying to setup mssql in my environment. I am able to get to the database from the application using the mssql after generating the client, but I cannot use the db pull command. When I do run it, I get the error P1000 "the provided database credentials for `` are not valid. To me, that error is saying that it's using the prisma engine to get the data and not the mssql-adapter as I would expect, how do I make Prisma use the correct login method (I am on WSL)...

Can't connect to `db.prisma.io` via vercel.

I am using prisma accelerate, and I can't deploy any apps because the connection to prisma servers is failing. `` 19:04:40.972 Error: P1001: Can't reach database server at db.prisma.io:5432`...

Prisma include becomes undefined when importing nested include objects across multiple files

Problem: I'm working with Prisma and TypeScript and I have a set of nested include objects split across multiple files. However, when I import and use them in a repository, some of the nested includes appear as undefined at runtime. ```ts...

Can't reach database server at `database-01k27em81jwaczq8600gm5qj7q.ewr0.db.prisma-data.net:5432`

I've seen an uptick today in the number of database connection errors for my Prisma database. I'm using vercel.
No description

Prisma Optimise and ExecuteRaw

I have a raw query that works flawlessly, until I add optimise ``` "@neondatabase/serverless": "^1.0.1", "@prisma/adapter-neon": "^6.14.0",...

Cannot integrate Optimize into Node.js ESM project

I'm trying to integrate Prisma Optimize into my JS project. After following the guide, I ran into the following error: ``` file:///home/micc/projects/optimize-playground/node_modules/@prisma/extension-optimize/dist/index.js:1 // .......

Billing issue

Hi, When are the services restored after successful payment? Let me know how to connect to the concerned team, I'm using STARTER PLAN, and payment was done 3 hrs ago...

NodeJS 24 LTS

Hi all, is NodeJS 24 LTS (24.11.0 atm) supported by Prisma.io? Docs says "Prisma ORM supports and tests all Active LTS and Maintenance LTS Node.js releases" but v24 is not listed....