// ResetField resets all changes in the mutation for the field with the given name.
// It returns an error if the field is not defined in the schema.
ResetField resets all changes in the mutation for the field with the given name.
It returns an error if the field is not defined in the schema.
// ResetField resets all changes in the mutation for the field with the given name . // It returns an error if the field is not defined in the schema .
func (m *APIAuditMutation) ResetField(name string) error {
	switch name {
	case apiaudit.FieldCreatedAt:
		m.ResetCreatedAt()
		return nil
	case apiaudit.FieldUpdatedAt:
		m.ResetUpdatedAt()
		return nil
	case apiaudit.FieldDeletedAt:
		m.ResetDeletedAt()
		return nil
	case apiaudit.FieldPlane:
		m.ResetPlane()
		return nil
	case apiaudit.FieldHashedGrantToken:
		m.ResetHashedGrantToken()
		return nil
	case apiaudit.FieldDomain:
		m.ResetDomain()
		return nil
	case apiaudit.FieldHTTPPath:
		m.ResetHTTPPath()
		return nil
	case apiaudit.FieldHTTPMethod:
		m.ResetHTTPMethod()
		return nil
	case apiaudit.FieldSentHTTPStatus:
		m.ResetSentHTTPStatus()
		return nil
	}
	return fmt.Errorf("unknown APIAudit field %s", name)
}
func ( m * APIAuditMutation ) ResetField ( name string ) error { switch name { case apiaudit . FieldCreatedAt : m . ResetCreatedAt ( ) return nil case apiaudit . FieldUpdatedAt : m . ResetUpdatedAt ( ) return nil case apiaudit . FieldDeletedAt : m . ResetDeletedAt ( ) return nil case apiaudit . FieldPlane : m . ResetPlane ( ) return nil case apiaudit . FieldHashedGrantToken : m . ResetHashedGrantToken ( ) return nil case apiaudit . FieldDomain : m . ResetDomain ( ) return nil case apiaudit . FieldHTTPPath : m . ResetHTTPPath ( ) return nil case apiaudit . FieldHTTPMethod : m . ResetHTTPMethod ( ) return nil case apiaudit . FieldSentHTTPStatus : m . ResetSentHTTPStatus ( ) return nil } return fmt . Errorf ( " " , name ) }
ResetField resets all changes in the mutation for the field with the given name.
ResetField resets all changes in the mutation for the field with the given name .