How to use a query result as a variable ? #9397
-
Hello I am using Hasura with my Flutter Application.. I have 2 tables:
What I want to do is get the name of the category that the task belongs to using the category_id What I thought of is:
The part that is Any idea how can I do this? Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@RitikaDesai98 Here is the reference document. |
Beta Was this translation helpful? Give feedback.
@RitikaDesai98
You should be able to create relationship between the "tasks" and "category" tables (with category_id as a foreign key) and then fetch "category" fields in a single query (via the relationship).
Here is the reference document.