better way to write code when multiple query parameters are present

Solution 1:

if you specify the key in the query, it will only return the value of that key, but if you just write @Query() query it will return the whole query object and then you can create a interface to give a type to the query object, @Query() query: IQuery