-
수파베이스 (Bad Request) 2차 해결멈멈-토이프로젝트(React)1 2024. 4. 27. 17:59728x90
시도 해본 방법
1. RLS 업데이트 관련 정책 수정 : 에러남
2. 수파베이스 가이드 보면서 테이블 조인eq 활용
에러 there is no unique constraint matching given keys for referenced table "userthema"
const { data, error } = await supabase .from("dogthemabgdb") .select( ` themabg ` ) .eq("userthema.themaurl", "dogthemabgdb.themaurl");
3. 수파베이스 컬럼 살펴보면서 userthema 외래키 설정
에러 there is no unique constraint matching given keys for referenced table "userthema"
원하는 데이터 반환!확인 완료
const { data, error } = await supabase.from("userthema").select( ` themaurl, dogthemabgdb(themaurl, themabg) ` ); if (error) { console.error("Error fetching data:", error.message); return; } console.log(data);
참고
'멈멈-토이프로젝트(React)1' 카테고리의 다른 글
수파베이스에서 테이블 비교 해서 이미지 출력 (0) 2024.05.24 실시간 위치 변경 (0) 2024.05.21 수파베이스 에러 400 (Bad Request) 1차 (0) 2024.04.27 수파베이스 에러 syntax error at or near "select" (0) 2024.04.27 수파베이스 에러 missing FROM-clause entry for table (0) 2024.04.26