jasci
06/28/2021, 9:35 AMsomeModelName2
?
prisma.someModelName0.findUnique(...).someModelName1().someModelName2({
include: {
someModelName3: {
select: {
someFieldName: true
}
}
}
})
I didn’t found any info about this in the Fluent Api docs. I mean the usage of select
and include
here.
It seems that it’s working, but wanted to ask anyway.
Thank you.Ryan
06/28/2021, 9:38 AMjasci
06/28/2021, 9:42 AMprisma.user.findUnique(...).posts({
select: { name: true }
})
jasci
06/28/2021, 9:45 AMprisma.user.findUnique(...).posts({
include: {
groups: {
select: {
name: true
}
}
}
})
Ryan
06/28/2021, 9:48 AMjasci
06/28/2021, 9:49 AM