Get Query String and Pass it to the HTTP call request


I am using an Azure Function where i have a requirement where we will get the Query PArams like below


and i need to remove user=10 from the query param and pass it to the http request

I have the code like below to read it

context.log('JavaScript HTTP trigger function processed a request.');

    var clientStatement = {};

    var url_parts = url.parse(req.url, true);

    var query = url_parts.query;

i get all query params in object here,i dint know how to take out the user param from this and pass it to the next function which i am sending it like below

ccStatement = await calls.get("" + pan + "&userType=" + userType)

presently i am doing it individually but i want to just append the query string to this url

Can you Plese help me with this?

What does the query object look like?

Also, is the value for user you get in the query the same value you are wanting to assign to the userType parameter in the ccStatement? Just wanting to confirm, since I did not see a user variable referenced.