// 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 *FactTypeMutation) ResetField(name string) error {
	switch name {
	case facttype.FieldCreatedAt:
		m.ResetCreatedAt()
		return nil
	case facttype.FieldUpdatedAt:
		m.ResetUpdatedAt()
		return nil
	case facttype.FieldDeletedAt:
		m.ResetDeletedAt()
		return nil
	case facttype.FieldSlug:
		m.ResetSlug()
		return nil
	case facttype.FieldBuiltIn:
		m.ResetBuiltIn()
		return nil
	case facttype.FieldValidation:
		m.ResetValidation()
		return nil
	}
	return fmt.Errorf("unknown FactType field %s", name)
}
func ( m * FactTypeMutation ) ResetField ( name string ) error { switch name { case facttype . FieldCreatedAt : m . ResetCreatedAt ( ) return nil case facttype . FieldUpdatedAt : m . ResetUpdatedAt ( ) return nil case facttype . FieldDeletedAt : m . ResetDeletedAt ( ) return nil case facttype . FieldSlug : m . ResetSlug ( ) return nil case facttype . FieldBuiltIn : m . ResetBuiltIn ( ) return nil case facttype . FieldValidation : m . ResetValidation ( ) 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 .