Prisma

P

Prisma

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

Join

Crash app problem

Im click file and crash pls help

How to connect existing Neon Postgres DB to Prisma Accelerate

Hi Prisma team and community, I have my database hosted on Neon Postgres and want to use Prisma Accelerate (Data Proxy) for it. I created a project in Prisma Cloud dashboard, but I don’t see an option to enter my Neon Postgres connection string. According to the docs, I should be able to provide my DB URL to connect Prisma Accelerate to my existing database....

Error creating a database connection

Hi, I get errors when trying to view studio of my new database cme7b43dz02es09m0d03dkuq3.
{"error":"Error in connector: Error creating a database connection. (Error in the underlying connector)","user_facing_error":{"is_panic":false,"message":"Can't reach database server at `database-01k27ccdyybvwkw4emed4ryn47.cdg1.db.prisma-data.net:5432`\n\nPlease make sure your database server is running at `database-01k27ccdyybvwkw4emed4ryn47.cdg1.db.prisma-data.net:5432`.","meta":{"database_host":"database-01k27ccdyybvwkw4emed4ryn47.cdg1.db.prisma-data.net","database_port":5432},"error_code":"P1001"}}
{"error":"Error in connector: Error creating a database connection. (Error in the underlying connector)","user_facing_error":{"is_panic":false,"message":"Can't reach database server at `database-01k27ccdyybvwkw4emed4ryn47.cdg1.db.prisma-data.net:5432`\n\nPlease make sure your database server is running at `database-01k27ccdyybvwkw4emed4ryn47.cdg1.db.prisma-data.net:5432`.","meta":{"database_host":"database-01k27ccdyybvwkw4emed4ryn47.cdg1.db.prisma-data.net","database_port":5432},"error_code":"P1001"}}
After some time it works again without any issue and then fails with the same error again. My production app cannot make any query....

Sending many prisma queries at once accumulates delay between them 200ms, 600ms, 1.1s, 1.5s...

I'm having big troubles finding the root of the bottleneck in our app. I have metrics, telemetry and postgres pg_stat_statements enabled and did some deep dive. Behavior and facts: - sending many requests in parallel (20) causes batches of time dalays, some arrive after 200ms, some after 400, 600, etc... its a pretty consistent delay accumulation - The delay is purely caused by prisma/db., iI added console.time before and after the findUnique / findMany...

When to run migration in production with Turborepo?

Hey there 👋 in the official Prisma-Turborepo guide (https://www.prisma.io/docs/guides/turborepo#1-create-your-monorepo-using-turborepo), it says to "ensure that db:generate is always executed before running dev or build. Additionally, make sure both db:deploy and db:generate are executed before db:build." Yet, in the example code given, we see only db:generate as a dependency of build. ```json { "$schema": "https://turbo.build/schema.json",...

TypeError: Invalid enum value: __esModule

TypeError: Invalid enum value: __esModule ❯ Object.get node_modules/@prisma/client/runtime/library.js:131:902 On a branch I'm working on, I've started to encounter this error in one specific test file. It seems to fire while importing the enums in the test file, the test hasn't even started yet. I can confirm the enums being used exist in our node_modules/.prisma/client/index.d.ts ...
No description

DB Push automatically creates the table _Table.

Hello, I don't understand; recently, when I run DB Push, it automatically generates tables with the prefix _TABLE. I searched the entire schema but couldn't find those tables. I'm using Planetscale, and this has never happened before. I hope for your assistance.
No description

@prisma/client still points to .prisma/client instead of custom-set output

I recently modified my schema to use the new "prisma-client" provider, and I had to specify an output path for where the generated files will be. ``` generator client { provider = "prisma-client" previewFeatures = ["driverAdapters"]...

Multi schema with files next to code? (Per module)

Hey I really like the fact Prisma allows to split schemas now, but putting all into single folder isn’t perfect. Is there any way to be able to put each module schema next to its code to make it easier to maintain and develop? Like having base schema in root/prisma, but then have eg root/src/users/user.prisma, root/src/tasks/task.prisma etc?...

MongoDB Locking Issue

Hello, I send my requests to the MongoDB server through Prisma, and everything works very normally during the day without any issues. But mostly at night, around midnight to noon (Iran time), this problem occurs where MongoDB seems to lock up and does not perform any operations. I have tested this both with mongosh and Mongo Compass, but the problem still exists. Also, I have not set any specific event or task to run at night, and I don’t do anything special during that time. I am also fairly sure that memory and CPU usage are not low....

Cannot find module '@prisma/client/runtime/query_compiler_bg.postgresql.wasm'

Hi, I keep getting this very annoying issue that only occurs when I push to Vercel, but not locally. I get: ``2025-08-08T16:06:07.964Z [error] # SERVER_ERROR: Error [PrismaClientKnownRequestError]: Invalid prisma.user.findFirst()` invocation:...

Prisma views (for MongoDB) with composite types causes Engine Panic

Hi, It seems that Composite types are not supported anymore(?) in prisma views with MongoDB I was upgrading my codebase from Prisma version from 5.19.0 to 6.13.0, I used the upgrade guide on the website....

How to init migration with existing database

I already have a database and there is data in it. Now I want to use Prisma to connect with it .So I do following: 1. Create a schema.prisma file, config datasource and generator 2. Run prisma db pull to get latest schema 3. Run prisma migrate dev to init migration ...

Cannot find module '.prisma/client/default'

Hello everyone, I just installed Prisma, and after pulling my database schema and generating it, everything worked fine. However, I made some changes and pushed those updates, and since then, I've been encountering this error: `Cannot find module '.prisma/client/default'...

Prisma Optimize Setup Error

I am receiving the following error after trying to setup prisma optimize in a monorepo. SyntaxError: The requested module 'prisma-instrumentation-5-x' does not provide an export named 'PrismaInstrumentation' My versions are as follows...

Mulitple index for json field

I want to add index per json field's sub field I am using MongoDB with Prisma Here is the schema definition ``` model Chat {...

Prisma Quota Alert

Hello, I received the following Email: ```Prisma Quota Alert ...

TypedSQL Cannot Determine Data Parameter for Array

I'm attempting to create a filter system that uses $queryRawTyped() . My frontend will have 5+ multi-select string filters. Each of these filters is to check if an element has any of the selected values. If the array is empty, it should not filter by that item. ```...

Error Message Popup in Prisma Studio

This large unreadable message pops up whenever I try to delete or save any changes
No description