EdwinJr
05/29/2022, 6:31 PMthis.prisma.users.groupBy({
by: ["uid","language", "school"]
})
Yet the only result I get is:
[
{ uid: 23, language: 'english', "school":"A "},
{ uid: 22, primary_language: 'french', "school":"B" },
{ uid: 24, primary_language: 'french' , "school":"B"}
]
Do you guys have any idea of how I can really group by school and name ? I have a result like:
[
[{ uid: 23, language: 'english', "school":"A "}],
[{ uid: 24, language: 'french', "school":"B "}, { uid: 22, language: 'french', "school":"B "}],
]
Thank you !! 🙂Berian Chaiwa
05/29/2022, 8:14 PMgroupBy school first, see if it works then add language and see if breaks. I do not understand why you are using uid there. Is it the id for the user?Nurul
05/30/2022, 1:15 PMEdwinJr
05/31/2022, 9:25 PMEdwinJr
05/31/2022, 9:26 PMVladi Stevanovic