Prisma

P

Prisma

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

Join

Where can I find the ResponseSize slider?

I'm on the Pro plan and would like to adjust response sizes from 5MB to 10MB as mentioned here: pris.ly/configure-limits I cannot find this slider anywhere!...
No description

Can't use npx prisma db seed

Hello, this is what I get from the command I installed ts-node and added in package.json: ```ts "prisma": { "seed": "ts-node prisma/seed.ts"...
No description

Cannot connect prisma Postgress in Docker container

HelLo I am using Nextjs and running postgress in docker container, and Here is my docker compose file `services: postgres: image: postgres:latest...
Solution:
You selected the carefully hand-crafted route. A dev artisan will respond soon. Meanwhile, the #ask-ai channel awaits if you're curious!

ERROR Nuxt Build Error: [commonjs--resolver] Invalid module ".prisma/client/index-browser"

Hi i'm using Nuxt 4 + Prisma and i'm trying to build it but there's an error on it. Here's th version: "@prisma/client": "^6.14.0", "@prisma/nuxt": "^0.3.0",...

Prisma Cloud Help

Hi there, got interesting question. have migrated my postgres to prisma however i can see the data on the TablePlus but cant retrieve or see it in the prisma studio. even if i add new row it does not show up on the prisma studio nor the query that i sent. how can i resolve this is there anybody seen this error before ?

Using increment on Decimal fields?

In the docs, it explicitly mentions atomic number operations like increment, decrement etc. only works on Float and Int. https://www.prisma.io/docs/orm/reference/prisma-client-reference#atomic-number-operations However, I tried it on a Decimal field, and it seems to work fine. Does that mean I can use it without any issues? Or are there any issues that could pop up? Part of my schema:...

Type SQL

in this code Type SQL "```-- @param {String} $1:productId -- @param {Int} $2:pageIndex -- @param {Int} $3:pageSize -- @param {String} $4:sortBy -- @param {String} $5:sortDirection...

Prisma metrics.

Since the metrics preview is marked to deprecated, to be removed in v7, is there an alternative for fetching metrics? Or any plans?

How to connect via SSL to an AWS RDS instance?

according to AWS for a secure connection (so that all data transeferred between an client and a server) the following is needed according to this documentation: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/PostgreSQL.Concepts.General.SSL.html 1. The server Certificate that can be found here: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html 2. and then setting the option on the connection to sslmode=verify-ca or sslmode=verify-full now when i download the file (eu-central-1-bundle.pem) and i store that in my code next to the prisma.schema file, i should be able to connect to the database with the following options on my connection string:...

Accelerate 2.x „include“ typing

hi there, I tried to use the latest accelerate version v2.x but ended up getting tons of typescript errors. is there a migration guide somewhere? eg includes don’t get properly inferred when I try to access the type via RouterOutputs

Does it make sense to have a tag per item?

I'd like to invalidate the entire item at once when I update a component of it. Does tagging in this way make sense>
No description

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