updateFileId() — supabase Function Reference
Architecture documentation for the updateFileId() function in Troubleshooting.script.mjs from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD d46c3b2d_94ca_5826_3532_ade3c61a1590["updateFileId()"] 9518e40b_fa13_8f55_5b39_98d14611b96a["syncTroubleshootingEntries()"] 9518e40b_fa13_8f55_5b39_98d14611b96a -->|calls| d46c3b2d_94ca_5826_3532_ade3c61a1590 style d46c3b2d_94ca_5826_3532_ade3c61a1590 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/docs/features/docs/Troubleshooting.script.mjs lines 474–488
async function updateFileId(entry, id) {
console.log(`[INFO] Writing database ID to file for ${entry.filePath}`)
const fileContents = await readFile(entry.filePath, 'utf-8')
const { data, content } = matter(fileContents, {
language: 'toml',
engines: { toml: parse },
})
data.database_id = id
const newFrontmatter = stringify(data)
const newContent = `---\n${newFrontmatter}\n---\n${content}`
await writeFile(entry.filePath, newContent)
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does updateFileId() do?
updateFileId() is a function in the supabase codebase.
What calls updateFileId()?
updateFileId() is called by 1 function(s): syncTroubleshootingEntries.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free