MongoDB supports an element operator called $exists which matches documents that have the specified field. It would offset for the lack of support for NULL metadata values.
@shubham.pawar thanks for sharing the feedback. Would you be using this type of filter to find rows to update or would this be used a part of a typical search?
@gdj0nes Currently our use case for this filter would be to use it during a typical search; to find similar records where a particular metadata is absent.
I wasted a lot of time trying to get a workaround for this filter, and then found out $exists filter does actually exists or at least works while querying, with absolutely no mention in the docs whatsoever.