MutationInputValue type

The mutation input type for one entity field. Relationship fields accept a keyed reference (see RelationshipInput) and cannot be set to null; other field types are unchanged.

type MutationInputValue<T, TRelationships> = T extends unknown
  ? IsRelationship<T> extends true
    ? RelationshipInputBranch<T, TRelationships>
    : T extends null
    ? [TRelationships] extends [never]
      ? T
      : never
    : T
  : never