Replies: 5 comments
-
Can any anyone please answer this? Is it possible to create relationship with a table within schema? I tried editing metadata yaml file manually but no luck. |
Beta Was this translation helpful? Give feedback.
-
I hope someone could point us in some direction here. But as far I can tell while the docs already showcase how the table relationships are defined, there doesn't seem to be a way to create them form the schema. And editing the metadata doesn't seem to do it either. At the top of these docs it says:
So perhaps this is still a work in progress feature. In which case it should be more obvious in the docs. |
Beta Was this translation helpful? Give feedback.
-
Today it's still not possible on the console UI, but can be done via the API. The below works.
|
Beta Was this translation helpful? Give feedback.
-
I've faced exactly the same issue. I have a table and a native query, then i manually created a relations between those according to Tracking relationships between tables and Native Queries article. But I can query my table including native query as a nested property only if there is no On the other hand, if I query native query directly with P.S. Query example:
|
Beta Was this translation helpful? Give feedback.
-
I hit this as well and the where clause not working makes this feature unusable unless I'm missing a sensible workaround? Even if there is, I'm reluctant to use NQs at this point. |
Beta Was this translation helpful? Give feedback.
-
Hi, I see that Native Queries and Logical Models were released - nice!
I was wondering, while I see in the docs that relationships with tables appear to be supported, it seems that that isn't surfaced in the console UI (I try to add relations and it tells me that I need to make more native queries to bind the relations to, but I want to make a relation with a table). Is this the case?
Also, regarding permissioning logical models, it seems that the options for permissions are much reduced compared to normal tables, for example I want to do an
_exists
check on a totally different table based on a column value, but that doesn't show up as an option in the Hasura Console logical models UI. Is that planned to be expanded?Thanks! Looking forward to use native queries but seems like there's still some missing pieces.
Beta Was this translation helpful? Give feedback.
All reactions