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
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