I'm running into an issue where my req.query data is unexpectedly changing. I initially set it with several key-value pairs, but when I check the values at a later point, only one key remains. It's puzzling why this is happening.
var req = {};
req.query = {
url: 'https://google.com/',
width: '500',
height: '190',
ref: 'http://domain.tld',
rnd: '9314871930982'
};
var data = req.query;
delete data.width;
delete data.height;
delete data.url;
delete data.ref;
console.log(req.query);
console.log(data);