snippets.readRange() — supabase Function Reference
Architecture documentation for the snippets.readRange() function in Snippets.ts from the supabase codebase.
Entity Profile
Relationship Graph
Source Code
apps/studio/components/interfaces/Docs/Snippets.ts lines 319–339
readRange: (resourceId: string, endpoint: string, apiKey: string) => ({
title: 'With pagination',
bash: {
language: 'bash',
code: `
curl '${endpoint}/rest/v1/${resourceId}?select=*' \\
-H "apikey: ${apiKey}" \\
-H "Authorization: Bearer ${apiKey}" \\
-H "Range: 0-9"
`,
},
js: {
language: 'js',
code: `
let { data: ${resourceId}, error } = await supabase
.from('${resourceId}')
.select('*')
.range(0, 9)
`,
},
}),
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free