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.
(name string, value ent.Value)
| 11313 | // the field is not defined in the schema, or if the type mismatched the field |
| 11314 | // type. |
| 11315 | func (m *SettingMutation) AddField(name string, value ent.Value) error { |
| 11316 | switch name { |
| 11317 | } |
| 11318 | return fmt.Errorf("unknown Setting numeric field %s", name) |
| 11319 | } |
| 11320 | |
| 11321 | // ClearedFields returns all nullable fields that were cleared during this |
| 11322 | // mutation. |
nothing calls this directly
no outgoing calls
no test coverage detected