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

Function: astFromScalarType()

astFromScalarType(type, schema, pathToDirectivesInExtensions?): ScalarTypeDefinitionNode

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

Parameters

type

GraphQLScalarType

schema

GraphQLSchema

pathToDirectivesInExtensions?

string[]

Returns

ScalarTypeDefinitionNode