I can't find any info in docs on updateOrCreate, a...
# prisma-whats-new
p
I can't find any info in docs on updateOrCreate, any example would be appreciated 🙂
a
You can check the
DOCS
tab in the Playground for the correct syntax. Basically, you can pass in an object with ID for the
update
parameter and a new object (without ID) for the
create
parameter. If you don't have an existing object, pass
{ id: "" }
as update parameter
👍 1
p
thanks agartha, that helped me 🙂
😎 1