P
Prisma2mo ago
u007

inconsistant use of id field and relation create

why is this createMany in relation somehow is using siteId instead of site: connect? ```const oldChat = await prisma.chat.create({data: { token: generateRandomString(), module: { connect: { id: moduleId }, }, chatProfile: { connect: { id: chatProfileId } }, Message: { createMany: { data: Array(40).fill({ role: 'USER', msgContent: 'Test message', siteId: site.id, // site: { // connect: { // id: site.id, // } // } }), }, }, }})
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server