getBranches() — supabase Function Reference
Architecture documentation for the getBranches() function in branches.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 96833de8_8d59_3d59_095f_00a2479d8141["getBranches()"] 1a0fb889_5497_6f22_9a47_15fa9d3151a9["useBranchesQuery()"] 1a0fb889_5497_6f22_9a47_15fa9d3151a9 -->|calls| 96833de8_8d59_3d59_095f_00a2479d8141 style 96833de8_8d59_3d59_095f_00a2479d8141 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/docs/lib/fetch/branches.ts lines 13–25
async function getBranches({ projectRef }: BranchVariables, signal?: AbortSignal) {
if (!projectRef) throw Error('projectRef is required')
const { data, error } = await get('/v1/projects/{ref}/branches', {
params: {
path: { ref: projectRef },
},
signal,
})
if (error) throw error
return data
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does getBranches() do?
getBranches() is a function in the supabase codebase.
What calls getBranches()?
getBranches() is called by 1 function(s): useBranchesQuery.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free