Vote count:
0
I´ve got an issue when I try to access the request parameters.
As I´ve read, we have to use request.params.someParam to access the data we´re sending via post or get. I´m following these steps, but I obtain an "undefined" response.
The code I use is the following one:
app.post('/hello', function(request, response) {
var query = new Parse.Query(Parse.Installation);
query.equalTo('UserName', request.params.userName); //trying to filter by UserName parameter
response.set('Content-Type', 'text/plain');
});
Does anyone know why do I obtain an undefined response and how to fix it?
Thanks
asked 1 min ago
accessing request parameters Parse
Aucun commentaire:
Enregistrer un commentaire