Fast and maintainable patterns for fetching from a database
sophiebits.com
sophiebits.com
From the description "like to render a summary of published posts, with the post title, author, number of times it’s been viewed, and a fun fact about that view count number" I don't even see why you'd need a parameter.
/sarcasm
I think this may be better refactored as a post about async / await and Promise.all().