interface
Contains utilities for printing GraphQL interface types as Markdown documentation.
printInterfaceMetadata()β
const printInterfaceMetadata: (type, options) => string = printObjectMetadata;
Defined in: graphql/interface.ts:14
Prints metadata for a GraphQL interface type. This is an alias for printObjectMetadata.
Prints the complete metadata section for a GraphQL object type
Parametersβ
typeβ
unknown
The GraphQL type object to process
optionsβ
PrintTypeOptions
Printing options
Returnsβ
string
Markdown formatted string containing fields and interfaces metadata
printCodeInterface()β
function printCodeInterface(type, options): string
Defined in: graphql/interface.ts:23
Generates a code block representation of a GraphQL interface type.
Parametersβ
typeβ
unknown
The GraphQL interface type to print
optionsβ
PrintTypeOptions
Configuration options for printing the type
Returnsβ
string
A string containing the Markdown code block representation