I have a model with these 2 properties. When doing...
# random
s
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
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
Sorry for the wrong grp. I have some follow up questions so will ask in the general channel