Skip to main content

object

GraphQL Object Type printing utilities

printCodeObject()​

function printCodeObject(type, options): string

Defined in: graphql/object.ts:104

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: graphql/object.ts:64

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): string

Defined in: graphql/object.ts:42

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