Author_id request.query not fetching proper issues, always returns all issues

Good day,
are there any good examples on how to use passed request.query to fetch data from the API? I’m looking at GET /issues?author_id=5 and can’t get the proper response, it’s always displaying all the issues. I want only those for the supplied authod_id of 5?

let authorIssues = api.Issues.all(request.query.author_id)

Thanks so much for any tips.