How to send integers in query parameters in nodejs Express service

You can’t, as HTTP has no notion of types: everything is a string, including querystring parameters.

What you’ll need to do is to use the req.query object and manually transform the strings into integers using parseInt():

req.query.someProperty = parseInt(req.query.someProperty);

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)