Closed mura-0828 closed 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("link").select("*").eq("id", id);
supabase.from("chef").select("*,link(*)")とするとchefテーブルに紐づいたlinkテーブルの値を配列として取得する。
supabase.from("chef").select("*,link(*)")
レビューが終わったらpage.tsxの変更は消します。
@mura-0828 こちらマージされて無いですが、何か理由ある感じでしょうか?
すみません。気付いていませんでした。page.tsxの変更を消したのでマージします。
チケット
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の変更は消します。
レビューを依頼する前のチェック項目