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

Function: astFromObjectType()

astFromObjectType(type, schema, pathToDirectivesInExtensions?): ObjectTypeDefinitionNode

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

Parameters

type

GraphQLObjectType

schema

GraphQLSchema

pathToDirectivesInExtensions?

string[]

Returns

ObjectTypeDefinitionNode