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

Function: getDirectiveNodes()

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

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

Type Parameters

TDirectiveNode

TDirectiveNode extends DirectiveNode

Parameters

entity

DirectableObject & object

schema?

GraphQLSchema

pathToDirectivesInExtensions?

string[]

Returns

TDirectiveNode[]