request.query help needed.
Desperately needing some guidance with this, I've tried multiple implementations of this code with no success. I'm struggling to get the request.query to get the userId. Am i doing this correctly? Any help will be greatly appreciated 🙏🏼




3 Replies
This is my api folder structure.

the second argument to the GET function is not response, it's context. The userId is in
context.params.userId
that worked, thanks so much! 🙏🏼