directive
Module for handling GraphQL directive printing and formatting. Provides utilities to generate string representations of GraphQL directives including their metadata, arguments, and locations.
printCodeDirective()β
function printCodeDirective(type, options?): string
Defined in: graphql/directive.ts:66
Generates a string representation of a complete GraphQL directive definition.
Parametersβ
typeβ
GraphQLDirective
The GraphQL directive to process
options?β
PrintDirectiveOptions
Configuration options for printing the directive (optional)
Returnsβ
string
A formatted string containing the complete directive definition
printDirectiveMetadata()β
function printDirectiveMetadata(type, options): string | MDXString
Defined in: graphql/directive.ts:48
Prints metadata information for a GraphQL directive, focusing on its arguments.
Parametersβ
typeβ
GraphQLDirective
The GraphQL directive to process
optionsβ
PrintDirectiveOptions
Configuration options for printing directive metadata
Returnsβ
string
| MDXString
Formatted metadata string in MDX format or empty string if no arguments