Join Slack
Powered by
Hey. I have a model that has two relations. Both r...
# orm-help
t
timothykrell
11/19/2021, 6:13 PM
Hey. I have a model that has two relations. Both relations have a
score
field. I want to sort the model by the average of the two
score
fields on its relations. Is this possible with Prisma client, or do I have to do a raw sql?
r
Ryan
11/22/2021, 5:20 AM
@timothykrell
👋 A raw query would be needed for this use case
✅ 1
Open in Slack
Previous
Next