$ne nie jest obsługiwany operator wyrażenia,
Możesz użyć $type do sprawdzenia to string jak to { "email": { $type: "string" } } , ponieważ typ null to "null".
EX. aby użyć częściowego indeksu dla $type filtr, którego musisz użyć poniżej filtra:
{ "email": { "$eq": "example@sqldat.com", "$type": "string" } }
// or
{ $and: [{ "email": "example@sqldat.com" }, { "email": { $type: "string" } }] }