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

Function: astFromField()

astFromField(field, schema, pathToDirectivesInExtensions?): FieldDefinitionNode

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

Parameters

field

GraphQLField<any, any>

schema

GraphQLSchema

pathToDirectivesInExtensions?

string[]

Returns

FieldDefinitionNode