isForeignKeyColumn() — supabase Function Reference
Architecture documentation for the isForeignKeyColumn() function in types.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 6288a2e3_3014_e0fc_a0c2_188dd421e451["isForeignKeyColumn()"] 8b569225_6cd6_9d1c_0356_7e06bb83c474["getColumnType()"] 8b569225_6cd6_9d1c_0356_7e06bb83c474 -->|calls| 6288a2e3_3014_e0fc_a0c2_188dd421e451 style 6288a2e3_3014_e0fc_a0c2_188dd421e451 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/studio/components/grid/utils/types.ts lines 77–80
export function isForeignKeyColumn(columnDef: SupaColumn) {
const { targetTableSchema, targetTableName, targetColumnName } = columnDef?.foreignKey ?? {}
return !!targetTableSchema && !!targetTableName && !!targetColumnName
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does isForeignKeyColumn() do?
isForeignKeyColumn() is a function in the supabase codebase.
What calls isForeignKeyColumn()?
isForeignKeyColumn() is called by 1 function(s): getColumnType.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free