[TIL] supabase 쿼리 정리

코딩쟝이·2024년 1월 18일
1

내배캠 TIL

목록 보기
56/63

조회

final data = await supabase
  .from('cities')
  .select('name, country_id')
  .order('id', ascending: true);

등록

await supabase
  .from('cities')
  .update({ 'name': 'Middle Earth' })
  .match({ 'name': 'Auckland' });

제거

await supabase
  .from('cities')
  .delete()
  .match({ 'id': 666 });
profile
웹 프론트엔드 개발자를 꿈꾸고 있습니다!

0개의 댓글