Skip to content
Discussion options

You must be logged in to vote

A few important findings from the prisma/orm codebase — including a breaking rename that just landed on main right after 8.0.0-rc.28 (very relevant for prisma-v8-codemod!):

1. Heads-up: .update() and .delete() were just renamed on main

In PR #31350 (commit d546693, merged after rc.28), single-row ORM mutations were renamed with no deprecated aliases:

  • collection.update(...) → collection.updateFirst(...)
  • collection.delete() → collection.deleteFirst()
    (The lower-level db.sql.*.update() / .delete(), updateAll, updateAndCount, deleteAll, deleteAndCount, and upsert keep their names.)

2. Current behavior & recommended pattern for "not found"

Replies: 6 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@jeeva-m-21
Comment options

@aetheramizu
Comment options

Answer selected by jeeva-m-21
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants