-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
allow array relationships based on array type columns #4464
Comments
@ravensnowbird Unfortunately I am not quite sure of the use case here. Can you maybe share some more details on what you are expecting and how it would be useful. PS: Sorry for the delay in response. This seems to have been missed somehow. |
Actually I think I get it now. You would like to have an array relationship to the |
@rikinsk Yes. Postgres by default supports array field of strings/integers. These can be used to form a relationship directly avoiding a middle table users_conversations. |
Did you find any work-around to do this kind of array relationship ? |
Exactly. this is working with an array relationship. It didn't work in the old version. it works on the latest one. I guess it must have been some bug. Closing this now. |
This isn't working in Hasura v2.0.0-alpha.9, produces error: |
any news in this? ^^ many customers have this issue (many open issues). Yes, intermediate table is a solution but we want to avoid it. |
Yepp looking for same functionallity. |
@rikinsk ^^ |
Looking for the same! EDIT: I figured out a workaround using computed fields. I created a function in SQL to return rows based on some logic, and then I created a computed field that points to this function. Works beautifully! |
It is possible to have array relationships to directly map to an array field in postgres without any middle table connection.
Conversations table
The text was updated successfully, but these errors were encountered: