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

222
Vistas
Is this method recommended for query strings in expressjs?

Currently making an application which needs to parse a query string with repeated values. Right now what I'm doing is something like this.

GET /api/titles?status=green&status=red which returns an array in the req.query.status like this req.query.status: ["green", "red"].

This can get cumbersome on the client side with a long url string when many fields are required. I've discovered that this works as well. GET /api/titles?status=green,red which returns something like this req.query.status: "green,red". I can then split this string into an array by running req.query.status.split(","). This results in an array with the same results to ["green", "red"].

My question is this a recommended way of doing this? Are there any security risks for running this?

about 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