interface GraphqlScalarTypeLike
extends GraphqlNamedTypeLike
Since 0.3.0

Structural facade for a graphql@16 scalar type, exposing the three settable resolver properties.

Properties

optional
serialize: (value: unknown) => unknown
optional
parseValue: (value: unknown) => unknown
optional
parseLiteral: (
node: unknown,
variables?: Record<string, unknown> | null
) => unknown

Usage

import { type GraphqlScalarTypeLike } from "graphql-plugin/src/index.ts";