Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

198
Vistas
Mongodb Array Query with case insensitive text

I have a record that looks similar to this...

{
  ...
  data: "Email@test.com",
  ...
}

I am trying to query it with db.collection.find({data: $in {['email@test.com']})

I am querying a collection, and most of the time I will have more than one email to query for. Instead of querying as multiple times for every email I need to check, I would like to just pass in an array of emails to query. The issue here being, that the email is not in the same case so I'm unable to match the emails together. I know that Mongo 3.4 handles case insensitivity better, especially with indices, however I am running mongo 3.2.

I have also tried regex

Any ideas on how to execute this while hitting an index? Or how to set this query up better?

over 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda