// AddField adds the value to the field with the given name. It returns an error if
// the field is not defined in the schema, or if the type mismatched the field
// type.
AddField adds the value to the field with the given name. It returns an error if
the field is not defined in the schema, or if the type mismatched the field
type.
// AddField adds the value to the field with the given name . It returns an error if // the field is not defined in the schema or if the type mismatched the field // type .
func (m *APIAuditMutation) AddField(name string, value ent.Value) error {
	switch name {
	case apiaudit.FieldSentHTTPStatus:
		v, ok := value.(int)
		if !ok {
			return fmt.Errorf("unexpected type %T for field %s", value, name)
		}
		m.AddSentHTTPStatus(v)
		return nil
	}
	return fmt.Errorf("unknown APIAudit numeric field %s", name)
}
func ( m * APIAuditMutation ) AddField ( name string , value ent . Value ) error { switch name { case apiaudit . FieldSentHTTPStatus : v , ok := value . ( int ) if ! ok { return fmt . Errorf ( " " , value , name ) } m . AddSentHTTPStatus ( v ) return nil } return fmt . Errorf ( " " , name ) }
AddField adds the value to the field with the given name.
AddField adds the value to the field with the given name .