Prisma 1-n relation create question

hello! I need to create a record and also many related exercises to this record, but the many records are also related to other models. Breakdown: A workout is connected to a program and user, and has (optional) many records. A record belongs to a workout and a program and user as well. Problem: I believe I cant createMany related records inside a create function if that record is also a related record. What works: Create workout and exercises separately. Map through the exercises and create / connect them individually. Is this the right way to go about this? Or am i missing something o_O
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server