Help with prisma nested create
I have this prisma model , and I'm trying to create a Membership entry where the group is created nested. The reason for this is that, when I'm creating a new group, I need to also create a Membership entry. Instead of in one query creating the group, and in another creating the membership, I thought I would nest the group creation within the membership creation. I'm trying something along these lines but am getting a long error, which I think roots from
3 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
just tried, still saying cant cast string to undefined; getting the impression that ownerId is undefined
which doesn't make much sense to me, though prisma gets confusing quite quickly
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View