-
-
Notifications
You must be signed in to change notification settings - Fork 139
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 JSON column not working #131
Comments
@soedirgo - just need to get an understanding of the Perhaps we can just |
To give an example, this is my supabase-js query: const { data: products, error } = await supabase
.from('products')
.select('*, prices(*)')
.eq('active', true)
.order('metadata->index')
.order('unit_amount', { foreignTable: 'prices' }); This is what postgrest-js currently generates: Which errors with {
"hint": null,
"details": null,
"code": "42703",
"message": "column products.metadata->index does not exist"
} when I remove the quotes from all order parts it works: |
This was to anticipate column names like |
Just realized you were doing the second |
🎉 This issue has been resolved in version 0.21.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Bug report
Describe the bug
This is failing
Caused by this:
postgrest-js/src/lib/PostgrestTransformBuilder.ts
Line 27 in 43b093d
If we remove the quotes from the
"${column}"
then it works.The text was updated successfully, but these errors were encountered: