-
Notifications
You must be signed in to change notification settings - Fork 11
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
Ordering with default value doesn't work #53
Comments
The bug only happens if the value that it is ordered by is also returned. If you return e.g. the
Thanks @Damienkatz for pointing that out. |
vmx
added a commit
to vmx/noise
that referenced
this issue
Dec 14, 2017
When there's a default value specified on the order clause on a Keypath that is also part of the return value with a different default value, then the returned results were wrong. It was sorted by the return value default, not by the order clause default. This fixes pipedown#53.
vmx
added a commit
to vmx/noise
that referenced
this issue
Dec 17, 2017
When there's a default value specified on the order clause on a Keypath that is also part of the return value with a different default value, then the returned results were wrong. It was sorted by the return value default, not by the order clause default. This fixes pipedown#53.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
According to the query language reference, it's possible to have a default value for the ordering, if the field it is ordered on isn't defined.
Here's an example:
The text was updated successfully, but these errors were encountered: