-
-
Notifications
You must be signed in to change notification settings - Fork 158
Ordering nested tables doesn't work for more than 1 level #149
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
Comments
@soedirgo was there any reason you added the quotes here? |
Seems like a continuation of #131. Same reason for quoting: to handle special characters. I think we can just assume that 95% of table/column names don't have special characters, and just let users quote the names manually. It's leaky, but should stop issues like this from happening. Places to update: |
🎉 This issue has been resolved in version 0.24.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Bug report
order()
only works if joined table is one level deep.To Reproduce
Run a query with multiple levels of joins:
My schema:
boards
-> has manylists
-> has manycards
.Each table has a
position
column.Expected behavior
Sorting should work on any level of nesting.
Research
PostgREST does support this, the issue is due to quoting of the
foreignTable
param here:postgrest-js/src/lib/PostgrestTransformBuilder.ts
Line 48 in 8cf6e00
When I remove the quoting locally, the sorting works correctly.
The text was updated successfully, but these errors were encountered: