CreateInput type

Input type for creating new entities. The primary key field is optional since it's typically database-generated, but can be provided if the user wants to specify a particular id.

type CreateInput<T> = PrimaryKeyField extends keyof T
  ? Omit<MutationInput<T>, PrimaryKeyField> & Partial<Pick<T, PrimaryKeyField>>
  : MutationInput<T>