lobieses
lobieses
PPrisma
Created by lobieses on 5/20/2024 in #help-and-questions
nested incuding
by some specific reason i should to take data in table by pattern now i have this query const resources = await this.prismaService.resource.findMany({ where: { id: 'some', }, include: { children: { include: { children: { include: { children: true, }, }, }, }, }, }); can i somehow avoid this nested selecting and set including for all childrens their childrens? Or maybe i can use some other ways?
5 replies