getDirectiveValue() — supabase Function Reference
Architecture documentation for the getDirectiveValue() function in fields.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 8b502157_6a73_c9d5_4c31_554ed08c1f3c["getDirectiveValue()"] 4e856584_4ea7_c3b1_92dd_d5f2fe44bb57["getDirectiveResults()"] 4e856584_4ea7_c3b1_92dd_d5f2fe44bb57 -->|calls| 8b502157_6a73_c9d5_4c31_554ed08c1f3c style 8b502157_6a73_c9d5_4c31_554ed08c1f3c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/docs/resources/utils/fields.ts lines 83–90
function getDirectiveValue(directive: DirectiveNode, info: GraphQLResolveInfo) {
const arg = directive.arguments?.[0]
if (!arg) return undefined
if (arg.value.kind !== 'Variable') {
return arg.value.kind === 'BooleanValue' ? arg.value.value : undefined
}
return info.variableValues[arg.value.name.value]
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does getDirectiveValue() do?
getDirectiveValue() is a function in the supabase codebase.
What calls getDirectiveValue()?
getDirectiveValue() is called by 1 function(s): getDirectiveResults.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free