Skip to main content

operation

Module for handling GraphQL operation printing functionality. Provides utilities to print operation types, metadata, and code representations.

printOperationMetadata()

function printOperationMetadata(type, options): string | MDXString;

Defined in: printer-legacy/src/graphql/operation.ts:38

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

string | MDXString

Formatted string containing operation metadata or empty string if invalid


printOperationType()

function printOperationType(type, options): string | MDXString;

Defined in: printer-legacy/src/graphql/operation.ts:17

Prints the operation type information.

Parameters

type

unknown

The operation type to print

options

PrintTypeOptions

Print type options for customizing output

Returns

string | MDXString

Formatted string representation of the operation type or empty string if invalid