Prisma · Arazzo Workflow
Prisma Client Upsert a Record
Version 1.0.0
Look up a record by its unique key, then upsert it so it is created when missing or updated when present.
Provider
Workflows
upsert-record
Find a record by id and upsert it, creating when absent or updating when present.
Reads a record by its unique id, branches on whether it exists, and upserts it with create and update payloads.
1
findRecord
findUnique
Attempt to read the record by its unique id, branching on whether it already exists.
2
upsertRecord
upsert
Upsert the record using the where condition. When a matching record exists the update payload is applied; otherwise the create payload is used to insert a new record.