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

Function: astFromDirective()

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

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

Parameters

directive

GraphQLDirective

schema?

GraphQLSchema

pathToDirectivesInExtensions?

string[]

Returns

DirectiveDefinitionNode