Is there an option to turn off the dataloader query optimization?
Update column type without losing data
int
and I need to migrate that to bigint
. If i change the column type in the prisma schema and run npx prisma migrate dev --name change-type
it wants to reset the public schema. I don't want to lose all the data so what's the proper way of doing this?Multiple schema - node_modules - prisma client
Getting total count of records with one Query
_count
of all records when doing a .findMany()
query, without having to do a second .count()
query?
I know it works for relationships, but I dont know how it works for simple queries....Problems regarding new feature (v5.15.0)

problem when deploying prisma
You can mark the path "mock-aws-s3" as external to exclude it from the bundle, which will remove this error and leave the unresolved path in the bundle. You can also surround this "require" call with a try/catch block to handle this failure at run-time instead of bundle-time.
, the problem is i never used the path that he is talking about , i started getting the error when i ad...Can't reach database server at `aws-0-ap-south-1.pooler.supabase.com:5432`
Prisma: command not found (Vercel)
prisma generate
during build but all I get is prisma: command not found
in the Vercel log.
I have it as a dependency. Following the guide on the prisma website I have not gotten any luck, as well as AI and stack overflow....Vulnerabilities That Won't Be Fixed
npm install prisma --save-dev
I keep getting 15 vulnerabilities. And if I try to run npm audit fix --force
, I still get the vulnerabilities.
problem when deploying
You can mark the path "mock-aws-s3" as external to exclude it from the bundle, which will remove this error and leave the unresolved path in the bundle. You can also surround this "require" call with a try/catch block to handle this failure at run-time instead of bundle-time.
, the problem is i never used the path that he is talking about , i started getting the error when i ad...I can't disconnect a many-to-many relationship
using variable in queryRaw not working
``
const date = "2024-06-07"
const regionCode = "US"
const dateParam =
[{"date": "${date}"}]`;...make from model.prisma sql
Help Needed with Nested CreateMany!
Question about designing friend request / follow system with relational tables
Follow
table, denoting follow relationships, and a FollowRequest
table, denoting pending follow requests.
I've enforced that in both the Follow
and FollowRequest
table, the permutation of two users is unique. So we can't have multiple duplicate FollowRequests
.
I want to write a function for my expres s server that can reject a follow request. I have the user context already. I see two ways of writing it:...Flat response from relational query?
Server closed connection
Adding fields to a templated `select`
getUser
function, which takes a select
as its argument :
```typescript
const getUser = async <T extends Prisma.UserSelect>(select: T) => {...Multiple relations between the same Tables
Conditional Unique Constraint