tool · inferred from evidence
upsert
An operation to insert or update data in the index.
- An operation failed because it depends on one or more records that were required but not found.
Fixes Prisma error P2025 'An operation failed because it depends on one or more records that were required but not found' by checking the record exists before updating or deleting it, and handling the not-found case explicitly. Use when upd