PrismaP
Prisma14mo ago
4 replies
Rami kadaweh

default data using prisma

const specialities = await this.prisma.speciality.findMany({

include: {

specialityLabel: { where: { language: 'fr'}}

}

})

i want if specific speciality does not have record specialityLabel with language 'fr' to let it got the record with language : 'en' as default
Was this page helpful?