Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Order By Relation (A bug that ignores the same value (zero) ) #7887

Closed
ehdrms785 opened this issue Jun 27, 2021 · 1 comment
Closed

Order By Relation (A bug that ignores the same value (zero) ) #7887

ehdrms785 opened this issue Jun 27, 2021 · 1 comment
Labels

Comments

@ehdrms785
Copy link

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.

model Post {
likeCountPeople: [Person]
}

model Person {
}

client.post.findMany ({
...
orderBy: {
likeCountPeople: { _count: "desc" },
},

@janpio janpio added the team/client Issue for team Client. label Jun 30, 2021
@ehdrms785
Copy link
Author

#8036 Issue updated !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants