enum
Provides utilities for printing GraphQL enum types to Markdown/MDX format
printCodeEnum()β
function printCodeEnum(type, options?): string
Defined in: graphql/enum.ts:43
Generates a GraphQL SDL code block for an enum type.
Parametersβ
typeβ
unknown
The GraphQL enum type to process
options?β
PrintTypeOptions
Optional printing options that control directive handling
Returnsβ
string
A string containing the enum type definition in GraphQL SDL, or empty string if type is not an enum
printEnumMetadata()β
function printEnumMetadata(type, options): string | MDXString
Defined in: graphql/enum.ts:25
Prints the metadata section for a GraphQL enum type.
Parametersβ
typeβ
unknown
The GraphQL enum type to process
optionsβ
PrintTypeOptions
Options for printing the type
Returnsβ
string
| MDXString
A string containing the metadata section in MDX format, or empty string if type is not an enum