반응형
Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- WIL
- Git
- 기록
- mongoose
- react
- 회고
- CS
- nest.js
- 알고리즘
- Grafana
- javascript
- 리눅스
- til
- mysql
- 피드백
- 자바스크립트
- 트러블슈팅
- 네트워크
- 주간회고
- MongoDB
- 생각일기
- array
- typescript
- 코테
- mongo
- next.js
- js
- Java
- 생각로그
- 생각정리
Archives
- Today
- Total
코딩일상
[supabse] custom schema 사용시 발생 에러 error code name PGRST106 본문
반응형
수퍼베이스 대시보드에서 아래 쪽으로 이동을 한후에 사용하고자하는 신규 스키마를 expose 시켜주면 된다.


{
code: 'PGRST106',
details: null,
hint: null,
message: 'The schema must be one of the following: public, graphql_public, tcrc'
}
추가로 이렇게 설정한 이후 @supabase/supabase-js 라이브러리 통해서 할경우
아래 코드와 같이 .schema를 지정해서 사용한다 하지 않을경우 public이 default이다.
// Initialize the JS client
import { createClient } from '@supabase/supabase-js'
const supabase = createClient(SUPABASE_URL, SUPABASE_ANON_KEY, { db: { schema: 'myschema' } })
// Make a request
const { data: todos, error } = await supabase.from('todos').select('*')
// You can also change the target schema on a per-query basis
const { data: todos, error } = await supabase.schema('myschema').from('todos').select('*')
참고
Using Custom Schemas | Supabase Docs
You need additional steps to use custom database schemas with data APIs.
supabase.com
The schema must be one of the following: public, storage, graphql_public · Issue #5884 · nextauthjs/next-auth
Environment npx envinfo --system --binaries --browsers --npmPackages "next,react,next-auth" System: OS: Windows 10 10.0.19044 CPU: (12) x64 AMD Ryzen 5 3600 6-Core Processor Memory: 7.41 GB / 15.93...
github.com
반응형
'개발 공부' 카테고리의 다른 글
| Template Pattern, Strategy Pattern 패턴 (0) | 2026.01.23 |
|---|---|
| [Next.js] dynamicImport?? 란 선 구현 후 배움 (1) | 2025.11.18 |
| [grafana] 대시보드 별 유저 권한 부여 하는 법 정리 (1) | 2024.10.23 |
| [grafana] export csv 한글깨짐 현상 해결법 (0) | 2024.10.17 |
| [FE] 프론트 엔드 에서는 어떤식으로 디자인 패턴을 가져갈까? (0) | 2024.05.27 |
Comments
