MutationInput type
Transforms an entity type for mutation input.
@onerelationship fields becomeRelationshipInput<T>(accepts keyed full or projected objects, or id-only)- Arrays are accepted and serialized by the existing mutation runtime. Manage relationships via the FK on the "many" side instead.
- Primitive fields remain unchanged
type MutationInput<T> = { [K in keyof T]: MutationInputValue<T[K]> }
Remarks
This type preserves optionality: if a field is optional in the entity (e.g., category?: Category),
it remains optional in the mutation input.
Array inputs do not guarantee a supported DAB relationship mutation or a
returned array projection. Update child entities' @one references instead.