Explicit many-to-many relation Prisma schema syntax for MongoDB
The following is my Prisma Schema for 3 models --> User, Cart and Item. model User { id String @id @default(auto()) @map("_id") @db.ObjectId name String email String @unique hashedPassword String isAdmin Boolean @default(false) cart Cart? } model Cart { id…