Order By Relation with CursorId doesn't return result #8036
Labels
bug/2-confirmed
Bug has been reproduced and confirmed.
kind/bug
A reported bug.
team/client
Issue for team Client.
topic: orderByRelation
Milestone
Bug description
< This is my latest bug report >
I am currently using the preview version of 'Order By Relations'.
There is a bug that ignores the same value (when count value is 0).
When I order(sort) by the number of people who press like,
if the value is zero(ex: A => likeCountPerson:0 , B=> likeCountPerson:0), prisma ignores it.
DataModel seems like this.
< I found why it doesn't work well i expected >
When I tried to move it again, there was no problem with that part.
But when i get order by the number of people who press like with cursorId,
prisma ignores it. OrderBy Relation with CursorId ignores " _count value is zero" is the key.
When I order By likeCountPeople _count "desc" with no CursorId,
5 Data comes out ( Including having zero data )
But , When I order By likeCountPeople _count "desc" with CursorId, Prisma ignores if _count value is zero.
2 Data comes out ( It should be to have four data except for one data that be skipped )
But the data that _count == 0 (count value is zero) is ignored .
How to reproduce
Expected behavior
When I orderBy Relation with cursorId, output data should be include if _count value is zero.
Of course, it goes well if i don't use cursorId.
Prisma information
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: