You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I have a model with an optional number field (Option<f64>). I needed to query models where the field is not None, but turns out that WhereParam::NumberNot is defined as NumberNot(f64), so I can't use model::number::not(None). I was able to bypass that by using model::number::gt(f64::MIN), but I think it would be harder for fields with non-numeric types.
The text was updated successfully, but these errors were encountered:
Hi! I have a model with an optional number field (
Option<f64>
). I needed to query models where the field is notNone
, but turns out thatWhereParam::NumberNot
is defined asNumberNot(f64)
, so I can't usemodel::number::not(None)
. I was able to bypass that by usingmodel::number::gt(f64::MIN)
, but I think it would be harder for fields with non-numeric types.The text was updated successfully, but these errors were encountered: