operation
Module for handling GraphQL operation printing functionality. Provides utilities to print operation types, metadata, and code representations.
printCodeOperation()
function printCodeOperation(type, options?): string | MDXString;
Defined in: printer-legacy/src/graphql/operation.ts:94
Prints the code representation of an operation.
Parameters
type
unknown
options?
PrintTypeOptions
Returns
string | MDXString
printOperationMetadata()
function printOperationMetadata(type, options): Maybe<PageSection[]>;
Defined in: printer-legacy/src/graphql/operation.ts:45
Prints the operation metadata including arguments and type information.
Parameters
type
unknown
The operation type to print metadata for
options
PrintTypeOptions
Print type options for customizing output
Returns
Maybe<PageSection[]>
Ordered operation metadata sections, or undefined when type is not an operation
printOperationType()
function printOperationType(type, options): Maybe<PageSection>;
Defined in: printer-legacy/src/graphql/operation.ts:24
Prints the operation type information.
Parameters
type
unknown
The operation type to print
options
PrintTypeOptions
Print type options for customizing output
Returns
Maybe<PageSection>
A "Type" PageSection, or undefined when type is not an operation