syafiq
syafiq
PPrisma
Created by syafiq on 5/27/2024 in #help-and-questions
Use orderBy based on the field that is coming from nested one to many relation
Hi. Is there a way for me to use orderBy based on the field that is coming from nested one to many relations. I just saw _count when try to use orderBy in this case. I do know that we can use SQL raw query to do it but I just wondering if there is other way to it as well?
4 replies