Comments (2)
I think this is a side effect of the different semantics of delete
and deleteMany
, caused by only either being usable for 1-1 or 1-1 relations. delete
is expected to throw if the entry to delete does not exist, while deleteMany
is not it seems.
Support for deleteIfExists
would probably avoid your problem? #9460
from prisma.
Yes, actually deleteIfExists
is exactly what I need!
from prisma.
Related Issues (20)
- Uncaught TypeError: Failed to resolve module specifier ".prisma/client/index-browser". Relative references must start with either "/", "./", or "../".
- add comment HOT 1
- Prisma Client: Unknown Argument HOT 2
- Cannot find module ".prisma/client/default" from "/app/node_modules/@prisma/client/default.js"
- OpenSSL 3.3.x Support
- queryRaw removes camelCase of renamed columns HOT 3
- dotenv loading issue with PrismaClient HOT 15
- Feature: Schema Dump to drop migrations
- "Invalid params: invalid type: map, expected a string" when prisma push HOT 1
- Relative paths in datasource URL handled differently with prismaSchemaFolder preview feature
- `.$extends` prevents typescript documentation HOT 1
- Testing Accelerate caching behavior locally
- TypeScript says PrismaClient can't receive `omit` property (enabled in client) HOT 1
- Client extensions cannot support Fluent API
- Direct Query Support for Nested Field Extraction in Prisma
- Prisma Seed Script Fails After Upgrading to v5.16.0 (DATABASE_URL Error) HOT 6
- $queryRaw ignores `schema` when using @prisma/adapter-pg
- Weird errors in prisma when my RDS DB scales down
- internal error: entered unreachable code
- "prismaSchemaFolder" doesn't exist
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prisma.