I have a model with these 2 properties. When doing
prisma.create
on this model do I need to provide both
createdBy
and
owner
or either of them?
o
Omar
04/28/2022, 9:20 AM
You could either. Prisma client input have two types; either checked or unchecked. So either pass owner with connect for example or pass createdBy as the owner id.
Also, I must note that this channel is not intended for Prisma questions, just random topics. You should ask in the general channel.
s
Shivam Singh
04/28/2022, 9:54 AM
Sorry for the wrong grp. I have some follow up questions so will ask in the general channel