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

Function: getDirective()

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