getAllTroubleshootingDiscussions() — supabase Function Reference
Architecture documentation for the getAllTroubleshootingDiscussions() function in Troubleshooting.script.mjs from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD c47627f8_4606_a55c_a1af_372a54f76a02["getAllTroubleshootingDiscussions()"] 9518e40b_fa13_8f55_5b39_98d14611b96a["syncTroubleshootingEntries()"] 9518e40b_fa13_8f55_5b39_98d14611b96a -->|calls| c47627f8_4606_a55c_a1af_372a54f76a02 4ec0327c_d8a1_2c30_78ec_cdf4a77ef7e9["octokit()"] c47627f8_4606_a55c_a1af_372a54f76a02 -->|calls| 4ec0327c_d8a1_2c30_78ec_cdf4a77ef7e9 style c47627f8_4606_a55c_a1af_372a54f76a02 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/docs/features/docs/Troubleshooting.script.mjs lines 349–384
async function getAllTroubleshootingDiscussions() {
const query = `
query getDiscussions($cursor: String) {
repository(owner: "${REPOSITORY_OWNER}", name: "${REPOSITORY_NAME}") {
discussions(first: 100, after: $cursor, categoryId: "${TROUBLESHOOTING_CATEGORY_ID}") {
pageInfo {
hasNextPage
endCursor
}
nodes {
id
url
}
}
}
}
`
const discussions = []
let hasNextPage = true
let cursor
while (hasNextPage) {
const {
repository: {
discussions: { nodes: moreDiscussions, pageInfo },
},
} = await octokit().graphql(query, { cursor })
discussions.push(...moreDiscussions)
hasNextPage = pageInfo.hasNextPage
cursor = pageInfo.endCursor
}
return discussions
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does getAllTroubleshootingDiscussions() do?
getAllTroubleshootingDiscussions() is a function in the supabase codebase.
What does getAllTroubleshootingDiscussions() call?
getAllTroubleshootingDiscussions() calls 1 function(s): octokit.
What calls getAllTroubleshootingDiscussions()?
getAllTroubleshootingDiscussions() 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