-
-
Notifications
You must be signed in to change notification settings - Fork 143
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
Types for column name disambiguation #450
Comments
I have been using the patch from #451 for three months now, it's working great! Any chance of getting that merged? It's a bit messy to have to manage the patch. Thanks! |
Hey everyone ! We've reworked the result inference in To test it out, update your npm install [email protected] Please let us know if you encounter any issues, especially with retro-compatibility, so we can finalize it for the next release. |
@avallete do db typescript types have to be regenerated or changed in any way? |
e: nvm, was some weird npm package caching thing |
looks like there's a small regression with e: it's just the |
Hey @wyozi Thank's for giving it a try and sending feedbacks ! Happy to hear that it's working for you and you managed to get everything working on the new version ! |
The fix has been released in |
Bug report
Describe the bug
PostgREST allows disambiguating relationships by using a column name as the target directly (see column name section of https://postgrest.org/en/stable/references/api/resource_embedding.html#embedding-disambiguation). However, select query parser in postgrest-js does not support this yet.
Personally I find column name disambiguation to be the superior method for embeds, so it would be nice to have this
To Reproduce
Use column name instead of foreign key constraint name or relation name as the target, i.e.
.select('user:username(*)')
instead of.select('user:users(*)')
The text was updated successfully, but these errors were encountered: