On this page

astFromDirective

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

astFromDirective(directive, schema?, pathToDirectivesInExtensions?): DirectiveDefinitionNode

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

Parameters

directive

GraphQLDirective

schema?

GraphQLSchema

pathToDirectivesInExtensions?

string[]

Returns

DirectiveDefinitionNode