I have a firebase cloud function in my web application which is mentioned below
saveUserData (req: express.Request, res: express.Response) {
const params = req.query.data;
const typeof(params);
return res.status(200).send('Inside user data');
}
here the typeof(params) is getting as object.
The value of params is
{ first_name: 'vij',email: '[email protected]',mobile_number: '9088888000',address: 'addad,dada'}
I want to get the value of mobile number, I have tried params.mobile_number but it's not working.