// 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 *GrantMutation) ResetField(name string) error {
	switch name {
	case grant.FieldCreatedAt:
		m.ResetCreatedAt()
		return nil
	case grant.FieldUpdatedAt:
		m.ResetUpdatedAt()
		return nil
	case grant.FieldDeletedAt:
		m.ResetDeletedAt()
		return nil
	case grant.FieldHashedGrantToken:
		m.ResetHashedGrantToken()
		return nil
	case grant.FieldDomain:
		m.ResetDomain()
		return nil
	case grant.FieldVersion:
		m.ResetVersion()
		return nil
	case grant.FieldAllowedHTTPMethods:
		m.ResetAllowedHTTPMethods()
		return nil
	case grant.FieldPaths:
		m.ResetPaths()
		return nil
	}
	return fmt.Errorf("unknown Grant field %s", name)
}
func ( m * GrantMutation ) ResetField ( name string ) error { switch name { case grant . FieldCreatedAt : m . ResetCreatedAt ( ) return nil case grant . FieldUpdatedAt : m . ResetUpdatedAt ( ) return nil case grant . FieldDeletedAt : m . ResetDeletedAt ( ) return nil case grant . FieldHashedGrantToken : m . ResetHashedGrantToken ( ) return nil case grant . FieldDomain : m . ResetDomain ( ) return nil case grant . FieldVersion : m . ResetVersion ( ) return nil case grant . FieldAllowedHTTPMethods : m . ResetAllowedHTTPMethods ( ) return nil case grant . FieldPaths : m . ResetPaths ( ) 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 .