Skip to main content

union

Module for handling GraphQL Union type printing operations.

printCodeUnion()

function printCodeUnion(type, options?): string;

Defined in: printer-legacy/src/graphql/union.ts:42

Generates GraphQL SDL code representation of a Union type.

Parameters

type

unknown

The GraphQL type to process

options?

PrintTypeOptions

Configuration options for printing (unused)

Returns

string

SDL string representation of the union type


printUnionMetadata()

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

Defined in: printer-legacy/src/graphql/union.ts:22

Generates metadata documentation for a GraphQL Union type.

Parameters

type

unknown

The GraphQL type to process

options

PrintTypeOptions

Configuration options for printing

Returns

string | MDXString

Formatted MDX string containing the union type's possible types