Skip to main content

object

GraphQL Object Type printing utilities

printCodeObject()​

function printCodeObject(type, options): string;

Defined in: printer-legacy/src/graphql/object.ts:108

Prints a GraphQL object type definition as a code block

Parameters​

type​

unknown

The GraphQL type object to process

options​

PrintTypeOptions

Printing options

Returns​

string

GraphQL object type definition as a code block string


printCodeType()​

function printCodeType(type, entity, options): string;

Defined in: printer-legacy/src/graphql/object.ts:68

Prints the GraphQL type definition as a code block

Parameters​

type​

unknown

The GraphQL type object to process

entity​

string

The entity type identifier (e.g., "type", "interface")

options​

PrintTypeOptions

Printing options

Returns​

string

GraphQL type definition as a code block string


printObjectMetadata()​

function printObjectMetadata(type, options): Maybe<PageSection[]>;

Defined in: printer-legacy/src/graphql/object.ts:46

Prints the complete metadata section for a GraphQL object type

Parameters​

type​

unknown

The GraphQL type object to process

options​

PrintTypeOptions

Printing options

Returns​

Maybe<PageSection[]>

Ordered metadata sections for fields and interfaces