On this page

astFromField

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

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