Home / Function/ getAttributeValue() — supabase Function Reference

getAttributeValue() — supabase Function Reference

Architecture documentation for the getAttributeValue() function in utils.server.ts from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  790ab825_fd72_cafc_9ee2_d8f5b37c7cf2["getAttributeValue()"]
  4bf39249_b505_f8a8_4985_5d5c1fd4d45b["fetchSourceCodeContent()"]
  4bf39249_b505_f8a8_4985_5d5c1fd4d45b -->|calls| 790ab825_fd72_cafc_9ee2_d8f5b37c7cf2
  beb19324_0ee7_c826_cdeb_54c57d864501["rewriteNodes()"]
  beb19324_0ee7_c826_cdeb_54c57d864501 -->|calls| 790ab825_fd72_cafc_9ee2_d8f5b37c7cf2
  070accdd_f25d_7bc5_e9b5_9ffd9a406977["toFilePath()"]
  070accdd_f25d_7bc5_e9b5_9ffd9a406977 -->|calls| 790ab825_fd72_cafc_9ee2_d8f5b37c7cf2
  fd8b0bf3_f6b1_8cf9_1a51_2735ab221d01["getVariables()"]
  fd8b0bf3_f6b1_8cf9_1a51_2735ab221d01 -->|calls| 790ab825_fd72_cafc_9ee2_d8f5b37c7cf2
  e4dca78c_a009_9457_9893_c32a01231d09["fetchPartialsContent()"]
  e4dca78c_a009_9457_9893_c32a01231d09 -->|calls| 790ab825_fd72_cafc_9ee2_d8f5b37c7cf2
  89322a95_cf3c_42c1_a11f_8d5fe57d59e7["showRemark()"]
  89322a95_cf3c_42c1_a11f_8d5fe57d59e7 -->|calls| 790ab825_fd72_cafc_9ee2_d8f5b37c7cf2
  style 790ab825_fd72_cafc_9ee2_d8f5b37c7cf2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/docs/features/directives/utils.server.ts lines 16–26

export function getAttributeValue(
  node: MdxJsxFlowElement | MdxJsxFlowElementHast | MdxJsxTextElement | MdxJsxTextElementHast,
  attributeName: string
) {
  return (
    node.attributes.find(
      (attr: MdxJsxAttribute | MdxJsxExpressionAttribute) =>
        'name' in attr && attr.name === attributeName
    )?.value ?? undefined
  )
}

Subdomains

Frequently Asked Questions

What does getAttributeValue() do?
getAttributeValue() is a function in the supabase codebase.
What calls getAttributeValue()?
getAttributeValue() is called by 6 function(s): fetchPartialsContent, fetchSourceCodeContent, getVariables, rewriteNodes, showRemark, toFilePath.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free