Prisma

P

Prisma

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

Join

Prisma try migrate a model that no exist.

Operating system: windows 10 64x Description:
When carrying out the migration, this model 'questions' is informed, which does not exist and prevents the migration from being carried out....

yarn 4

Does yarn prisma generate works with yarn 4 ? If so, how ?

Cannot generate prisma client in monorepo

I am in the middle of upgrade to yarn v1 to yarn v4 as I was struggling with the linking of dependency using lerna v1. Since, I am unable to generate my prisma client, and the erreor is very (very) broad. I have been following all the advices from GitHub to the discord bot here....

Setting up Prsma Pulse with AWS RDS

I have created a new AWS RDS postgres databse and followed all the instructions listed here: https://www.prisma.io/docs/pulse/database-setup/aws-rds yet I am not able to connect to the database from my prisma console dashboard....
No description

URGENT: I cannot remove/uninstall Accelerate from my Vercel build. Help.

I'm trying to remove Accelerate, but Vercel's not having it. I've removed use of extend, removed the package library, changed environment URLs to original Postgres urls. I'm stumped. Please help.

How can I simultaneously use Accelerate with directUrl for some uses cases?

I keep getting Error validating datasource db: the URL must start with the protocol prisma://. I want to use my directUrl to bypass Prisma's 5MB limit in one use case. This works on localhost, but not on Vercel preview/production. I specify a Prisma accelerate URL in DATABASE_URL, and a direct url in DIRECT_DATABASE_URL. I'm instantiating prismaDirect this way:...

Problem with nested create

Hi I have a table that has 2 relationships with a different table. When I try to do a nested create it fails saying it requires docGenerationId Isn't it implied already?...

Can I opt into join vs every query being join by default?

Hi I am looking to try the relationJoins feature, but looks like enabling it enables it for all queries and then you have the option to opt out of it. Is there a configuration where I can control the default behavior (I'd like to leave it as query) and then slowly opt into join for some queries?...

Prisma without Engine for Serverless/Edge?

I have an old codebase that is using serverless.com framework on AWS Lambda and using Prisma. I was wondering with driverAdapters can I avoid the prisma engines? and probably just use like a query builder like Drizzle? Currently my function total size is like 54 MB! and almost 80% of it is Prisma engine things...

engine type library error

I have added the engine type with library in generate client still it is giving this error
No description

Random garbage errors

Argument content_id is missing. This makes no sense. I do content: {connect: {id: ''} why the hell would i need to specify an id... and when I do it means jackshit because it ignores it and asks me why i added that....

How can I use plain object instead of composite types ?

Hi, We were using Prisma v4.10.0 in ou project and we upgraded to 4.16.0 in order to use the new $extends() features Problem :...
Solution:
ty ! just checked and the composites disapeared on v5...

how to import prisma client on a client without compromising credentials

Hello, I would like to build an app using a monorepo. Since my backend will be using nestjs and my application react native. I would love to use prisma as an ORM to define my entities and reuse the types in both my nestjs and rn applications. While it’s not a concern importing prisma client on my backend, I’m afraid that doing so on react native may lead to credentials leaks Is there a way to get the types and the types only on my rn app?...

Best Practices for Error Handling When Updating Bridge Table (Composite IDs)

What are the best practices when it comes to going about error handling for a function that is updating a bridge table? Is it necessary to verify to check if the two records that comprises its composite ID (e.g., facilityUuid for the Facility model and workerUuid for the Worker model) before updating it? Or will it check for that on its own as a consequential result? Here's are some snippet examples:...

Help with generate database (Rust Prisma ORM)

Command "cargo prisma generate" don't generating "prisma.rs" file.
No description

What’s a good strategy for migration if downtime is not a problem?

I was thinking to establish something like this in my app. 1. Run npx prisma migrate dev on side branches: • Ensure migrations are always additive (expansion schema). 2. Prepare data migration scripts if needed....

Internal server error

Hello I have an internal server error and I don't know how I can fix that. Can you help me please ?
No description

How to use migrate when having a directurl and normal url

I get this error Please make sure your database server is running at db.caowreskbcgzoajwwjvy.supabase.co:5432.

How to create project?

When hitting the New Project button on the dash, the Create project button in the dialog is disabled. How can I create a new project?
No description

Error: Cannot fetch data from service:getaddrinfo ENOTFOUND aws-us-east-1.prisma-data.com

Any idea why we'd be getting this error? The database connection seems to be working for us otherwise, but seeing this error in a few places in our logs