Indexing on undefined
For optional fields, is there a way to index for undefined values?
4 Replies
Yes. Is it not working for you?
(there is a weird workaround if you want effectively
q.neq("field", undefined)
because that syntax doesn't work, but q.eq("field", undefined)
should workah, my own types were throwing me off, yes it works
Thank you!
No worries. In case you're curious, the weird workaround is
q.gte("field", null as any)
which works because undefined < null < everything elseOh that’s good to know!