Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

216
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!