KJReactor
07/26/2022, 7:15 PMinclude.Austin
07/26/2022, 9:30 PMKJReactor
07/27/2022, 5:30 PMmodel Profile {
...
user User @relation(fields: [userId], references: [user_id])
userId String @unique @db.ObjectId
}
model User {
...
profile Profile?
}
The nested write on user seemed to be working find but the include did not return the associated profile with :
await prisma.user.create({
...
include: {
profile: true
}
}
The same goes for reading :
await prisma.user.find({
include: {
profile: true
}
}
I updated to the latest version today and now the first still successfully writes the profiles but also returns the connected profile as expected. However, the second one still does not work.KJReactor
07/27/2022, 6:21 PMAustin
07/27/2022, 6:28 PM