Home / Function/ buildMap() — supabase Function Reference

buildMap() — supabase Function Reference

Architecture documentation for the buildMap() function in Reference.typeSpec.ts from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  a35422c1_171a_8187_d7ed_a0850c196a69["buildMap()"]
  b960cff3_9820_d19a_a18b_203c3d139c93["parseMod()"]
  b960cff3_9820_d19a_a18b_203c3d139c93 -->|calls| a35422c1_171a_8187_d7ed_a0850c196a69
  style a35422c1_171a_8187_d7ed_a0850c196a69 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/docs/features/docs/Reference.typeSpec.ts lines 313–320

function buildMap(node: any, map: Map<number, any>) {
  if ('id' in node) {
    map.set(node.id, node)
  }
  if ('children' in node) {
    node.children.forEach((child: any) => buildMap(child, map))
  }
}

Subdomains

Called By

Frequently Asked Questions

What does buildMap() do?
buildMap() is a function in the supabase codebase.
What calls buildMap()?
buildMap() is called by 1 function(s): parseMod.

Analyze Your Own Codebase

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

Try Supermodel Free