Join Slack
Powered by
Was this not fixed in <https://github.com/prisma/p...
# orm-help
h
Halvor
06/23/2021, 10:46 PM
Was this not fixed in
https://github.com/prisma/prisma-engines/pull/1092
?
r
Ryan
06/24/2021, 5:02 AM
Works fine for me. What version of
prisma
and
@prisma/client
are you on?
h
Halvor
06/25/2021, 3:25 PM
I'm on 2.25.0
Halvor
06/25/2021, 3:25 PM
Happens when the query yields no rows.
Halvor
06/25/2021, 4:43 PM
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
Ryan
06/28/2021, 5:26 AM
@Halvor
Yes it will be 0 if there aren’t any rows.
Open in Slack
Previous
Next