リレーションシップを作成する
これで外部キー制約が作成されたため、Hasuraコンソールがそれに基づき自動的にリレーションシップを提案します。
todos
テーブルにある Relationships
タブに移動して、以下の提案されたリレーションシップを確認する必要があります。
提案されたオブジェクトリレーションシップで Add
をクリックします。
user
(事前に入力済み)としてリレーションシップ名を入力して、Save
をクリックします。
これでtodosとユーザーテーブル間でリレーションシップが確立されます。
Did you find this page helpful?
Start with GraphQL on Hasura for Free
Build apps and APIs 10x faster
Built-in authorization and caching
8x more performant than hand-rolled APIs

