Pretty simple, trying to filter out results where a string field is "". Cant seem to find a way to do this. Any help would be appreciated.
Asked
Active
Viewed 10 times
0
-
Firestore does not provide inequality filters. You can only filter *for* specific values and ranges of values. – Doug Stevenson May 28 '20 at 01:24
-
yeah the inequality doesnt exactly fit for strings and Im already using a range filter so couldnt do what is in that post – DRing May 28 '20 at 01:25
-
What you're asking **is** about inequality for empty string. When you say "filter out", that's the same as a filter for inequality. Firestore only applies filters **for** values. I suggest not allowing an empty string at all, and instead use a boolean to indicate the case you want to filter. So, you could filter **for** empty=true. – Doug Stevenson May 28 '20 at 01:29