PrismaP
Prisma17mo ago
10 replies
ranco

Help with Prisma schema

Im working on a NextJS project with Prisma and mangoDB
I have an Activity model that has a relationship with Member
when first creating an Activity it dosn't have members only and owner but i still want to set the default value to an empty array.
when I try to do so with a post request and set members: [] to an empty array i get this error:

Argument members: Invalid value provided. Expected MemberCreateNestedManyWithoutActivityInput.

will appreciate any help to solve this problem.
Screenshot_2024-09-17_at_2.49.52_PM.png
Screenshot_2024-09-17_at_2.52.30_PM.png
Was this page helpful?