MySQL, Node JS, Express for loop [closed]

I have a very unique question. I am fairly new to web development and everything I know is through personal trial and error. To get back on track, my question is, is there a way to loop through a MySQL database? I am using MySQL as the database, and node js plus express for the main part of the personal lesson. The project is a trivia questionnaire and I’m planning to use the database to pull the question in unless anyone can recommend another idea.