DEV Community

Discussion on: How you can build your own web framework for Node.js

Collapse
 
softchris profile image
Chris Noring

query string is the full string ?page=1&pagesize=20. A query parameter is just one of the values like page. Query parameters are just a term to say all the parameters, in that I guess it's synonymous to query string. I'm using this terminology parameters as we also have other types of parameters, like route parameters.. If it helps, if someone says query string they mean this ?page=1&pagesize=20. If someone says query parameters they most likely want to parse the query string to something like this { page: '1', pageSize: '10' } so it can be used to filter a response. I think of a URL like this http://localhost:3000/products/<route parameter>?queryParameter=value&anotherQueryParameter=value.

Collapse
 
nibble profile image
Joseph Mawa

Thanks for the quick response. I guess i am just overthinking things.