getSelections() — supabase Function Reference
Architecture documentation for the getSelections() function in fields.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 7ce9f429_32c1_86c0_5cac_a798059f90e5["getSelections()"] 8c15a3b0_a8b6_062a_e852_7c801cccbc6c["flattenAST()"] 8c15a3b0_a8b6_062a_e852_7c801cccbc6c -->|calls| 7ce9f429_32c1_86c0_5cac_a798059f90e5 style 7ce9f429_32c1_86c0_5cac_a798059f90e5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/docs/resources/utils/fields.ts lines 24–35
function getSelections(ast: FieldNode | FragmentDefinitionNode | InlineFragmentNode) {
if (
ast &&
ast.selectionSet &&
ast.selectionSet.selections &&
ast.selectionSet.selections.length
) {
return ast.selectionSet.selections
}
return []
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does getSelections() do?
getSelections() is a function in the supabase codebase.
What calls getSelections()?
getSelections() is called by 1 function(s): flattenAST.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free