Slide 23
Slide 23 text
JS で DB からデータを取得(SELECT)
const { data, error, status } = await supabase
.from('articles')
.select(`
id,
updated_at,
title,
note,
note_type,
userid,
profiles (
username,
avatar_url
)
`)
.order('updated_at', { ascending: false });
23
.eq() で絞り込まなくても
SELECT 権限があるデータ
だけ取得可能