Join Slack
Powered by
<How can I get request.query.size as empty value i...
# stackoverflow
r
rss
10/14/2025, 5:32 AM
How can I get request.query.size as empty value instead of length of the structure when the query parameter isn't sent
I am trying to dynamically generate a list with N entities, the quantity can be set using the query parameter size as the following GET /search?size=15. I want to set a default value for it when the query parameter size isn't sent as the following GET /search. I am using
Response Templating
(therefore using
Handlebars
) I am using WireMock...
2
Views
Open in Slack
Previous
Next