P
Prisma3mo ago
u007

where inside include

hi im using mongodb driver with prisma 5.7.1,
const module = await prisma().module.findFirst({
where: {
id: moduleId,
},
include: {
ModuleSources: true,
defaultMqttServer: true,
defaultQstashService: true,
defaultS3Repo: true,
Chat: {
where: { token: 'ywovi8hiam', providerSenderId: 'WHATSAPP60123221812' }
const module = await prisma().module.findFirst({
where: {
id: moduleId,
},
include: {
ModuleSources: true,
defaultMqttServer: true,
defaultQstashService: true,
defaultS3Repo: true,
Chat: {
where: { token: 'ywovi8hiam', providerSenderId: 'WHATSAPP60123221812' }
i realise module.Chat seems to return even thou providerSenderId is null, does where condition works inside include?
1 Reply
u007
u0073mo ago
sorry my own bug