Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pothos/packages/core/index.ts>ExposeNullableOption

Pothos GraphQL is library for creating GraphQL schemas in typescript using a strongly typed code first approach
Latest
type alias ExposeNullableOption
import { type ExposeNullableOption } from "https://deno.land/x/pothos@release-1730496474/packages/core/index.ts";

Type Parameters

Types extends SchemaTypes
Type extends TypeParam<Types>
ParentShape
Name extends keyof ParentShape
definition: FieldNullability<Type> & (Type extends [unknown] ? Awaited<ParentShape[Name]> extends readonly (infer T)[] | null | undefined ? [T] extends [NonNullable<T>] ? Awaited<ParentShape[Name]> extends NonNullable<Awaited<ParentShape[Name]>> ? boolean | { items: boolean; list: boolean; } : true | { items: boolean; list: true; } : Awaited<ParentShape[Name]> extends NonNullable<Awaited<ParentShape[Name]>> ? { items: true; list: boolean; } : { items: true; list: true; } : never : Awaited<ParentShape[Name]> extends NonNullable<Awaited<ParentShape[Name]>> ? boolean : true)