How to query using graphql with a dynamic router parameter

System Information
  • Strapi Version: strapi 4.0.0
  • qraphql Version: 1.22.17
  • Operating System: ubuntu.20.04.3
  • Database: SQlite
  • Node Version: 6.13.1
  • NPM Version: 8.1.2
  • Yarn Version: 1.22.17

Hi everyone, is it possible to query using graphql with a dynamic variable acting as a placeholder for a route parameter.
my goal is to have the filter option equal to a dynamic router parameter instead of hardcoding it directly.
I’ll appreciate your input on this

http://localhost:3000/artist/samuel

query {
      images(filters: { artist: { artist: { eq: "samuel" } } }) {
 ----------------------------------
-----------------------------------
                }}}}}}}
  `