Hi @hollow lion
can you try this code
getAllMonitors(where?: Prisma.monitorsWhereInput, select?: Prisma.monitorsSelect): Promise<ReturnMonitor[]> {
return this.prisma.monitors.findMany({
include: {
outages: {
where: {
solved: null
},
take: 1, // Limit the number of outages to 1
}
}
});
}