Skip to Content
GraphQL Tools
DocumentationAPI@graphql-tools/utilssrcfunctionsmakeDirectiveNode

Function: makeDirectiveNode()

makeDirectiveNode<TDirectiveNode>(name, args?, directive?): TDirectiveNode

Defined in: packages/utils/src/print-schema-with-directives.ts:504

Type Parameters

TDirectiveNode

TDirectiveNode extends DirectiveNode

Parameters

name

string

args?

Record<string, any>

directive?

Maybe<GraphQLDirective>

Returns

TDirectiveNode