forked from redwoodjs/redwood
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(storage): Add support for createMany, updateMany and upsert (red…
- Loading branch information
Showing
3 changed files
with
382 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
- feat(storage): Add support for createMany, updateMany and upsert (#11390) by @dac09 | ||
|
||
Extends the uploads Prisma client extension with the following: | ||
|
||
1. `createMany`: support for bulk creation with automatic cleanup of uploaded files if the operation fails. | ||
|
||
2. `updateMany`: bulk update functionality that manages file uploads across multiple records, including removal of old files after successful updates. | ||
|
||
3. `upsert`: determining whether it's an insert or update and managing file uploads accordingly - delete files on creation fail, and replace files on update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.