On this page

astFromUnionType

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

astFromUnionType(type, schema, pathToDirectivesInExtensions?): UnionTypeDefinitionNode

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

Parameters

type

GraphQLUnionType

schema

GraphQLSchema

pathToDirectivesInExtensions?

string[]

Returns

UnionTypeDefinitionNode