Nullability
All types, including user-made ones, will have a .nullable property, which will make a type nullable both at runtime for GraphQL and compile time for TypeScript. For example:
| TypeScript | GraphQL | |
|---|---|---|
t.string.nullable | string \| null \| undefined | String |
t.float.nullable | number \| null \| undefined | Float |
t.int.nullable | number \| null \| undefined | Int |
t.id.nullable | string \| number \| null \| undefined | ID |
t.boolean.nullable | boolean \| null \| undefined | Boolean |