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

138
Vistas
mongoose value number to string format of digit 15 change to character e+15

i have a problem, when trying to create a new field in mongoose aggregate. when I try to convert a number to a string. where the number has digits 15 and above.

but the result of adding the string e+15

{
        $addFields: {
          stringCode: {$toString : "$number_code"}
        }
      },
      {
        $lookup: {
          from: "member",
          localField: "number_code", //string
          foreignField: "stringCode", // intiger to string
          as: "member",
        },
      }

the example number I'm trying to change is 123456789123456

and the result is "stringCode": "1.2345e+15"

I hope the result is "123456789123456"

about 4 years ago · Juan Pablo Isaza
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