Home / Function/ EntitiesSecondLevelNav() — supabase Function Reference

EntitiesSecondLevelNav() — supabase Function Reference

Architecture documentation for the EntitiesSecondLevelNav() function in SecondLevelNav.tsx from the supabase codebase.

Entity Profile

Relationship Graph

Source Code

apps/studio/components/interfaces/ProjectAPIDocs/SecondLevelNav.tsx lines 16–32

const EntitiesSecondLevelNav = () => {
  const { ref } = useParams()

  const { data } = useOpenAPISpecQuery({ projectRef: ref }, { staleTime: OPEN_API_SPEC_STALE_TIME })
  const tables = data?.tables ?? []

  return (
    <SecondLevelNavLayout
      category={API_DOCS_CATEGORIES.ENTITIES}
      title="Tables & Views"
      docsUrl={`${DOCS_URL}/reference/javascript/select`}
      renderResourceList={(props) => (
        <ResourcePickerList {...props} items={tables} emptyMessage="No tables available" />
      )}
    />
  )
}

Subdomains

Analyze Your Own Codebase

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

Try Supermodel Free