type
Input
type Input[T any] struct {
value T
null bool
}A presence-aware value used by nullable generated Go mutation fields.
MarshalJSON()([]byte, error)- Encode the concrete value or explicit null marker.
A nil *Input omits the field, Set emits a concrete JSON value, and Null emits explicit JSON null. This preserves outbound partial-update semantics that an ordinary *T cannot represent.
Input intentionally implements marshaling only. Generated mutation structs are typed local-API arguments, not general-purpose JSON decode DTOs.
Methods
Input.MarshalJSON()MarshalJSON implements json.Marshaler. Nil *Input fields are omitted by the generated parent struct's omitempty tag before this method is called.