-
-
Notifications
You must be signed in to change notification settings - Fork 502
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
findAndCount returning NaN for count #858
Comments
Add a reproduction |
Hah, you're too quick... I was upping one with the GH issue number attached. |
Good, ty :] Anyway, I never merge those "repro PRs", the idea was that this "single file repro" should be part of the issue - I will be the one adding it to the codebase together with a fix. |
Why is that @B4nan? I mean, why aren't test cases worthy of merging? |
Why would I merge something that will cause build failures? |
Because someone went to the trouble of creating it as per the contribution guidelines. You can push to the PR to fix, correct? |
Describe the bug
When using findAndCount on Postgres with a filterQuery that includes inverse relations, count can incorrectly return NaN
To Reproduce
Steps to reproduce the behavior:
yarn test GH858
Expected behavior
Count returns a number greater than or equal to zero (or findAndCount() throws an error).
Versions
The text was updated successfully, but these errors were encountered: