// ClearField clears the value of the field with the given name. It returns an
// error if the field is not defined in the schema.
ClearField clears the value of the field with the given name. It returns an
error if the field is not defined in the schema.
// ClearField clears the value of the field with the given name . It returns an // error if the field is not defined in the schema .
func (m *APIAuditMutation) ClearField(name string) error {
	switch name {
	case apiaudit.FieldDeletedAt:
		m.ClearDeletedAt()
		return nil
	case apiaudit.FieldHashedGrantToken:
		m.ClearHashedGrantToken()
		return nil
	case apiaudit.FieldDomain:
		m.ClearDomain()
		return nil
	case apiaudit.FieldHTTPPath:
		m.ClearHTTPPath()
		return nil
	case apiaudit.FieldHTTPMethod:
		m.ClearHTTPMethod()
		return nil
	case apiaudit.FieldSentHTTPStatus:
		m.ClearSentHTTPStatus()
		return nil
	}
	return fmt.Errorf("unknown APIAudit nullable field %s", name)
}
func ( m * APIAuditMutation ) ClearField ( name string ) error { switch name { case apiaudit . FieldDeletedAt : m . ClearDeletedAt ( ) return nil case apiaudit . FieldHashedGrantToken : m . ClearHashedGrantToken ( ) return nil case apiaudit . FieldDomain : m . ClearDomain ( ) return nil case apiaudit . FieldHTTPPath : m . ClearHTTPPath ( ) return nil case apiaudit . FieldHTTPMethod : m . ClearHTTPMethod ( ) return nil case apiaudit . FieldSentHTTPStatus : m . ClearSentHTTPStatus ( ) return nil } return fmt . Errorf ( " " , name ) }
ClearField clears the value of the field with the given name.
ClearField clears the value of the field with the given name .