Hi, am wondering is there a way to have null or em...
# community-help
l
Hi, am wondering is there a way to have null or empty integer fields? It seems like this is only possible for string fields where we use an empty string. Because I still want to have the integer field present in the document even though the value is null. Have tried setting
optional: true
, but then the field simply disappears if there is no value.
a
Maybe someone else could answer with a better solution, but what I did was introduce a new boolean helper field and query/filter on that.
l
Hmm that's possible, although a bit messy