Programatic where clause based off query parameters.
I'm using fastify although I doubt that matters.
Attached is pseudoish code. I am looking for a way to programmatically add to the where clause based off query parameters. If there are no query parameters, just do a select * from {table}
I have searched the documentation pretty well, and searched blog entries etc, couldn't find an answer: