P
Prisma7mo 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
u007OP7mo ago
sorry my own bug
Want results from more Discord servers?
Add your server