On this page

getDirectiveNodes

The getDirectiveNodes function exported by @graphql-tools/utils.

getDirectiveNodes<TDirectiveNode>(entity, schema?, pathToDirectivesInExtensions?): TDirectiveNode[]

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

Type Parameters

TDirectiveNode

TDirectiveNode extends DirectiveNode

Parameters

entity

DirectableObject & object

schema?

GraphQLSchema

pathToDirectivesInExtensions?

string[]

Returns

TDirectiveNode[]