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

153
Vistas
What is a rich object?

I'm learning Express. While doing a tutorial, I stopped to try to figure out why the tutor used express.urlencoded({extended: false}). I learned what url-encoding is, and I've read descriptions on the true or false values for the extended option, but I'm still not sure why we have to put extended: false in this app. I know it's because we are storing input from a form, and that input has to be parsed to be usable in the req.body object. But the best documentation on the extended option says that a true value uses the qs library and allows for rich objects and arrays in our body object, whereas false uses the querystring library which only allows a string or an array.

So, is a "rich" object just a nested object? (Same with array?) And why would we set extended to false?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

If you look at the qs docs, you can see what kinds of objects it can parse beyond the usual key-value pairs of query strings.

If you don't want that, the parsing's presumably a lot more complicated than parsing a regular query string, so not doing that extra work should be beneficial to performance/just make your application simpler.

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