El $ne
no es un operador de expresión compatible,
Puedes usar $type
para verificar es string
así { "email": { $type: "string" } }
, porque el tipo nulo es "null".
EJ. usar índice parcial para $type
filtro que tienes que usar debajo del filtro:
{ "email": { "$eq": "[email protected]", "$type": "string" } }
// or
{ $and: [{ "email": "[email protected]" }, { "email": { $type: "string" } }] }