You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
req.query.name is a string or a string array while 5044 is a number. parseInt(req.query.name) should work. Please use stackoverflow for questions like that
Hi, I can't get req.query.name to pass in the collection.find I expose the problem below:
let query = req.query.name;
from:
http://localhost:3000/search?name=5044
the funny thing is that it works perfectly well in this way:
so assigning 5044 to the query variable run perfectly, but:
assigning the query req.query.name doesn't want to know, do you have any ideas about it?
The text was updated successfully, but these errors were encountered: