Was this not fixed in <https://github.com/prisma/p...
# orm-help
h
r
Works fine for me. What version of
prisma
and
@prisma/client
are you on?
h
I'm on 2.25.0
Happens when the query yields no rows.
I was trying to get _sum of a table where it can return zero rows. Then i want sum to be zero instead of null, but it returns null anyway. How can i achieve this?
r
@Halvor Yes it will be 0 if there aren’t any rows.