Sign up for Hasura Newsletter
Loading...

リレーションシップを作成する

これで外部キー制約が作成されたため、Hasuraコンソールがそれに基づき自動的にリレーションシップを提案します。

todos テーブルにある Relationships タブに移動して、以下の提案されたリレーションシップを確認する必要があります。

todosリレーションシップページ

提案されたオブジェクトリレーションシップで Add をクリックします。

user(事前に入力済み)としてリレーションシップ名を入力して、Save をクリックします。

ユーザーオブジェクトリレーションシップ

これでtodosとユーザーテーブル間でリレーションシップが確立されます。

Did you find this page helpful?
Start with GraphQL on Hasura for Free
  • ArrowBuild apps and APIs 10x faster
  • ArrowBuilt-in authorization and caching
  • Arrow8x more performant than hand-rolled APIs
Promo
footer illustration
Brand logo
© 2024 Hasura Inc. All rights reserved
Github
Titter
Discord
Facebook
Instagram
Youtube
Linkedin