Skip to main content

GraphQLScalarTypeConfig <TInternal, TExternal>

Index

Properties

optionalastNode

astNode?: Maybe<ScalarTypeDefinitionNode>

optionalcoerceInputLiteral

coerceInputLiteral?: GraphQLScalarInputLiteralCoercer<TInternal>

Coerces an externally provided const literal value to use as an input.

optionalcoerceInputValue

coerceInputValue?: GraphQLScalarInputValueCoercer<TInternal>

Coerces an internal value to include in a response.

optionalcoerceOutputValue

coerceOutputValue?: GraphQLScalarOutputValueCoercer<TExternal>

Coerces an externally provided value to use as an input.

optionaldescription

description?: Maybe<string>

optionalextensionASTNodes

extensionASTNodes?: Maybe<readonly ScalarTypeExtensionNode[]>

optionalextensions

extensions?: Maybe<Readonly<GraphQLScalarTypeExtensions>>

name

name: string

optionalparseLiteral

parseLiteral?: GraphQLScalarLiteralParser<TInternal>
@deprecated

use replaceVariables() and coerceInputLiteral() instead, parseLiteral() will be removed in v18

optionalparseValue

parseValue?: GraphQLScalarValueParser<TInternal>
@deprecated

use coerceInputValue() instead, parseValue() will be removed in v18

optionalserialize

serialize?: GraphQLScalarSerializer<TExternal>
@deprecated

use coerceOutputValue() instead, serialize() will be removed in v18

optionalspecifiedByURL

specifiedByURL?: Maybe<string>

optionalvalueToLiteral

valueToLiteral?: GraphQLScalarValueToLiteral

Translates an externally provided value to a literal (AST).