const response = await prisma.myObject.findMany({
where: {
myKey: true
},
select: {
someId: true, // I want to filter 'someRelatedModel' where someRelatedModel.someId == this
someRelatedModel: {
where: {
someId: // Only give me 'someRelatedModels' wher this is the same as the someId above
}
}
}
const response = await prisma.myObject.findMany({
where: {
myKey: true
},
select: {
someId: true, // I want to filter 'someRelatedModel' where someRelatedModel.someId == this
someRelatedModel: {
where: {
someId: // Only give me 'someRelatedModels' wher this is the same as the someId above
}
}
}