section
Module responsible for generating Markdown sections for GraphQL schema documentation. Handles the printing of section items, metadata, and structured documentation content.
printMetadataSection()β
function printMetadataSection<T, V>(
type,
values,
section,
options): string | MDXString
Defined in: section.ts:169
Prints a metadata section with special handling for deprecated items.
Type Parametersβ
Tβ
T
Type of the parent element
Vβ
V
Type of the values being printed
Parametersβ
typeβ
T
The parent type containing the metadata
valuesβ
Values to include in the metadata section
V
| V
[] | readonly V
[]
sectionβ
string
Section title/header
optionsβ
PrintTypeOptions
Configuration options for printing
Returnsβ
string
| MDXString
Formatted MDX string containing the metadata section
printSection()β
function printSection<V>(
values,
section,
options): string | MDXString
Defined in: section.ts:118
Prints a complete section with title and content.
Type Parametersβ
Vβ
V
Type of the values being printed
Parametersβ
valuesβ
Array of values to include in the section
V
[] | readonly V
[]
sectionβ
string
Section title/header
optionsβ
PrintTypeOptions
Configuration options for printing
Returnsβ
string
| MDXString
Formatted MDX string containing the complete section
printSectionItem()β
function printSectionItem<T>(type, options): string | MDXString
Defined in: section.ts:33
Prints a single section item with its associated metadata.
Type Parametersβ
Tβ
T
Type of the GraphQL element being printed
Parametersβ
typeβ
T
The GraphQL type or field to print
optionsβ
PrintTypeOptions
Configuration options for printing
Returnsβ
string
| MDXString
Formatted MDX string containing the section item
printSectionItems()β
function printSectionItems<V>(values, options): string | MDXString
Defined in: section.ts:83
Prints an array of section items with consistent formatting.
Type Parametersβ
Vβ
V
Type of the values being printed
Parametersβ
valuesβ
Single value or array of values to print as section items
V
| V
[]
optionsβ
PrintTypeOptions
Configuration options for printing
Returnsβ
string
| MDXString
Formatted MDX string containing all section items