Hi till now i didn’t figured out how exactly the u...
# prisma-whats-new
t
Hi till now i didn’t figured out how exactly the updateOrCreate mutation is really working… and i didn’t found a documentation for it. Can someone explain me it or give me alink where i can read it?
n
@tfiwm hey, thanks for the question! 🙂 For now, this is an undocumented part of the API. both the input arguments
update
and
create
are required.
update
has a required
id
parameter apart from that the input arguments work the same as for update and create mutations. cc @lastmjs 🙂
👍 1
l
Can you give an example? I'm not understanding how to do an update or create when the id is required on the update input argument