Skip to main content
Module

x/pothos/packages/core/builder.ts>SchemaBuilder#scalarType

Pothos GraphQL is library for creating GraphQL schemas in typescript using a strongly typed code first approach
Latest
method SchemaBuilder.prototype.scalarType
import { SchemaBuilder } from "https://deno.land/x/pothos@release-1726524975/packages/core/builder.ts";

Type Parameters

Name extends ScalarName<Types>

Parameters

name: Name
options: PothosSchemaTypes.ScalarTypeOptions<Types, InputShape<Types, Name>, ParentShape<Types, Name>>

Returns

PothosSchemaTypes.ScalarRef<Types, InputShape<Types, Name>, ParentShape<Types, Name>>