score:1

Accepted answer
if(!!queryObject.q1 && !queryOnject.q2){
   //do something
}
else if(!queryObject.q1 && !!queryOnject.q2){
   //do something
}
else if(!!queryObject.q3){
   //do something
}
else {
    response.status(400).send("bad request");
}

score:0

let queries = request.get();
// iterate through query as an object. 
// e.g Object.keys(queries).forEach((prop) => console.log(prop));

Related Query

More Query from same tag