UNPKG

@pothos/core

Version:

Pothos (formerly GiraphQL) is a plugin based schema builder for creating code-first GraphQL schemas in typescript

14 lines (10 loc) 331 B
import type { GraphQLScalarType } from 'graphql'; import type { SchemaTypes } from '../types'; import { ScalarRef } from './scalar'; export class BuiltinScalarRef<Types extends SchemaTypes, T, U> extends ScalarRef<Types, T, U> { type; constructor(type: GraphQLScalarType) { super(type.name); this.type = type; } }