enum
Provides utilities for printing GraphQL enum types to Markdown/MDX format
printCodeEnum()
function printCodeEnum(type, options?): string;
Defined in: printer-legacy/src/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: printer-legacy/src/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