qin-team-recipe / 10-recipe-app

2 stars 3 forks source link

Feature#31 mura #40

Closed mura-0828 closed 1 year ago

mura-0828 commented 1 year ago

チケット

closes https://github.com/qin-team-recipe/10-recipe-app/issues/31

内容

recipe,chef関連のテーブルからのGETを作成。

基本的な形は同じで、supabase.from("link").select("*").eq("id", id);のfromの引数とselectの引数が変わっています。

supabase.from("chef").select("*,link(*)")とするとchefテーブルに紐づいたlinkテーブルの値を配列として取得する。

確認項目

レビューが終わったらpage.tsxの変更は消します。

レビューを依頼する前のチェック項目

KohnoTaiyo commented 1 year ago

@mura-0828 こちらマージされて無いですが、何か理由ある感じでしょうか?

mura-0828 commented 1 year ago

すみません。気付いていませんでした。page.tsxの変更を消したのでマージします。