Prisma

P

Prisma

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

Join

Will early access members receive an email when free is ending

Hi there! I just wanted to confirm that when early access ends all subscribers will be notified with ample time to ensure they want to continue on their plan?

Compatibility with workers

Hey, is it possible to code a telegram bot using cloudflare workers and prisma postgres - accelerate? using bun as a runtime I'm struggling to do that and I'm starting to have compatibility doubt Thanks...

Check array contains

Hello, what's the correct way to check if an array doesn't have a value? I'm doing this right now but it's not working: ``` await tx.player.update({ select: { id: true },...

Existing Database in snake_case

I'm running db pull on an existing database.... they are come in as snake_case. Anyway to auto convert these?

Random accelerate network error

hello, i'm migrating a big project to prisma, at the moment i migrate my dev environment to make all the tests. I'm using Prisma Postgres on starter plan with a NextJS app and an expressjs external api, both connect using prisma accelerate. Sometime I got this error: ```...

Queries slow even with accelerate

I don't know what to expect, but queries seems very slow. Using Prisma postgres with accelerate, all my queries incl. simple ones like findUnique with where clause on primary key and very few columns, takes at least 250ms (seen via Prisma Optimize). Located in Denmark (running Nextjs locally). Probably network latency, but is there anything I can do about that ? I was under the impression accelerate made data "global" with fast local access....

Prisma 6.2 seems incompatible with Turso

I am getting both type and runtime errors when creating a prisma client with the libsql adapter. Is this expected behaviour? My project was working fine with Prisma ^5.16.2 and I decided to upgrade for the enums, but I'm not being able to query data. Migrations do work properly though ...
No description

trying to push my first schema to prisma

But i get the following error i think it is a cache problem as i change the data and still get the same error how do i clear the cache in Prisma or it just the same as doing it in npm
No description

Was a token launched or the one that is out is a scam

I see a prism token that is currently being traded. Is it a scam ?

Can't access the database from the console

I created my first Prisma project. I'm using Postgres. When I try to access the database, I'm getting an unknown error. The URL I tried to access: https://console.prisma.io/cm5zeabi802086sfan8v8ylgs/cm5zebg9n01k311g3mmyjm47i/cm5zebg9o01k411g3zo5e164j/database/overview...
No description

Could not find the migration file at

I am getting this error when trying to update my DB tables after making changes in the prisma.schema. I havnt touched any migration files and want to get a better understanding for what went wrong. Could not find the migration file at prisma\migrations\0_init\migration.sql. Please delete the directory or restore the migration file....

python question

The new Postgres service, does it work with inserting python from form data? Can you edit columns etc online or is it local then upload it?

TypeScript issue with JSON[] field filter using path

I have the following model and am using a PostgreSQL database:
model Message { mentions Json[] }...

Please add Dark/Night mode on console.prisma.io

Night/Dark mode is very helpful for devs/users. I know the extension- Dark Reader, but why extension?

"code":"P6003" Prisma example: accelerate-hacker-news

When I upvote on official example- I upvode a post- I got this error- Error: Failed to invalidate Accelerate cache. Response was 400 Bad Request. {"code":"P6003","message":"There is a hold on your account. Reason: planLimitReached. Please contact Prisma support if you think this is an error."} at async addVotes (addVotes.ts:21:3) code link ...

Query works but getting a TS error

Hello! I wrote a query that is working but I am getting a Typescript error that I cannot debug. Could someone more experienced tell me what this could be about? Of course I don't want you to work for me. Not looking for help solving the problem, just some steering on the right direction. Thank you so much in advance. Query:...

Prisma MongoDB

Hello everyone. I want to using Prisma with MongoDB, NestJS. I was setup with docs, and when start server, I have an error with Typescript: ``` yarn start [9:51:57 AM] Starting compilation in watch mode... ...

Prisma Studio Whitescreen?

Hello, when i start up prisma studio using yarn prisma studio -p 6000, i don't get any errors. When i open the url, it's just a white screen. Any help is appreciated, thanks

Im getting some errors out of nowhere

My app was working perfectly fine and suddenly im getting some prisma errors like: PrismaClientKnownRequestError: Invalid prisma.user.findUnique() invocation: ...

Can we pg_dump or pg_restore?

I would like to migrate a database from Vercel Storage to Prisma Postgres, but currently it doesn't seem possible due to being unable to connect directly.
Next