EventsCountCleared returns if the "eventsCount" field was cleared in this mutation.
()
| 463 | |
| 464 | // EventsCountCleared returns if the "eventsCount" field was cleared in this mutation. |
| 465 | func (m *AlertMutation) EventsCountCleared() bool { |
| 466 | _, ok := m.clearedFields[alert.FieldEventsCount] |
| 467 | return ok |
| 468 | } |
| 469 | |
| 470 | // ResetEventsCount resets all changes to the "eventsCount" field. |
| 471 | func (m *AlertMutation) ResetEventsCount() { |