Prisma

P

Prisma

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

Join

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

Prisma ORM and Supabase RLS Policies

How can I add Supabase RLS policies in my Prisma ORM schema. My goal is to have one single source of truth schema and not add parts of my schema directly via Supabase dashboard.

Problem with generate and generate --sql

HI, I have multiple problems with npx prisma generate . I've updated to the newest version and tried to use typedSql . 1. When I generate prisma client, I get dozens of errors in my existing code. As I am importing PrismaClient from node_modules and not generated folded ( I want to keep it that way). After some digging I see that PrismaClient is generated as the type of any and everything breaks. After around 50 retries of running generate command, the PrismaClient was generated correctly......
No description

Database url is mission

hi i am facing same issue just like this and the instruction is give by bot it's already done expect npm install dotenv and after doing last step still i am facing some issue https://discord.com/channels/937751382725886062/1431070857253490688 and i am facing this issue when i run this comman
npx prisma migrate dev --name init
npx prisma migrate dev --name init
...

Lambda missing prisma_schema_build_bg.wasm

Trying to use the new native client generation. Deploying lambda functions with SST. Received response status [FAILED] from custom resource. Message returned: Error: ENOENT: no such file or directory, open '/var/task/prisma_schema_build_bg.wasm'...

strange error applying migrations

I have a nextjs project and am running into this error ``Error: P1001 Can't reach database server at aws-1-us-east-2.pooler.supabase.com:5432` ...

ReferenceError: Cannot access 'pg' before initialization

Hi everyone, I love prisma. I use it with my react-router project, but I recently started to migrate to tanstack start. the project is a monorepo managed with pnpm and turborepo ...

Failed to parse syntax of config file

Hi everyone, I get this error when executing pnpm prisma generate: ``` Failed to parse syntax of config file at "<PATH>/prisma.config.ts"...

Advanced features on Prisma Postgres?

I'm evaluating potentially using Prisma's managed, serverless postgres offering. However, I'm trying to figure out the limitations of it vs managing my own postgres. Main things i'm curious about are whether Prisma Postgres can support: 1. triggers...

_count change the order of the results

why does this happen? same queries but one has a _count inside the select clause and the order of the results are different, is this supposed to be like this?

Failed to apply a migration

Hi lads, I am having issues pushing changes to production db and receiving P3018 Migration failed to apply because one of our dev applied a migration and then deleted it from the repo. Can I just use prisma db push and then resolve that problematic migration by creating correctly named folder and running prisma migrate resolve --aplied name_of_the_migration ? Thank you upfront...

How to change default schema like `?schema={schema-name}`?

I have been set the schema of Prisma w/ DATABASE_URL. (e.g. postgres://....../db-name?schema=schema-name) But On Prisma Postgres, It only connects to public schema. How can I do?...

"Failed to parse syntax of config file" when using config from D1 tutorial

I've copy pasted the config from the cloudflare d1 tutorial and am getting Failed to parse syntax of config file at.... Is it outdated? Furthermore, the official documentation for the adapter option also doesn't work ```typescript import type { PrismaConfig } from 'prisma';...

Error: TypeError: Cannot convert undefined or null to object

Im trying to migrate an old project using 6.3.1 to latest version (6.19.0). Its a MySQL project. I want to use the new js libs instead of Rust engine as this is hosted in AWS. However, im running into this error when I run prisma generate: Error: TypeError: Cannot convert undefined or null to object ```ts generator client { provider = "prisma-client-js"...
No description

Issue with Prisma export in Turborepo + Express setup

Hey everyone 👋 I'm running into an issue with my Turborepo setup that includes Prisma and Express.js. When I try to start my dev server with npx turbo dev, I get the following error: ...

Urgent Database restore

My database information has deleted. I have only 2 days ago backups. Has Prisma any backup that is not showed to the user that I can restore?

unable to Generate database credentials on console.prisma.io

Hey everyone 👋 I tried to create new database credentials on https://console.prisma.io, but I keep getting a 500 Internal Server Error. I’ve already tried refreshing and using a different browser, but the issue persists. Is this a known issue?...
No description

Best practice with import & generated client?

The doc says and advices to set an output folder for the generated client. Default folder inside node_modules (.prisma/client) will be removed in v7. Ok no problem. But what it does not say is: should I import Prisma type and PrismaClient from generated/prisma (whatever output folder) or from @prisma/client? From what I have seen, it seems both are not compatible, it should be all one or other. But vscode always show me both which is annoying....

Cannot infer type of prisma accelerate extended client

I'm trying to use prisma accelerate so that I can use the caching functionality, but i'm running into an issue where typescript cannot actually infer the type of the resulting prisma client. This is the code i'm using to instantiate the client: ``` export function createPrismaClient() { return new PrismaClient().$extends(withAccelerate());...

Prisma connection fails :/

Today I encountered this issue, but the system has been working fine for the past few days: 0|aia-core-backend | 2025-11-03T16:31:03: prisma:error 0|aia-core-backend | 2025-11-03T16:31:03: Invalid prisma.branch.findMany() invocation: 0|aia-core-backend | 2025-11-03T16:31:03:...