On this page

getDirective

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

getDirective(schema, node, directiveName, pathToDirectivesInExtensions?): Record<string, any>[] | undefined

Defined in: packages/utils/src/get-directives.ts:53

Parameters

schema

GraphQLSchema

node

DirectableObject

directiveName

string

pathToDirectivesInExtensions?

string[] = ...

Returns

Record<string, any>[] | undefined