Skip to main content
Module

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

Pothos GraphQL is library for creating GraphQL schemas in typescript using a strongly typed code first approach
Go to Latest
type alias ExposeNullableOption
import { type ExposeNullableOption } from "https://deno.land/x/pothos@release-1713397530/packages/core/mod.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)