Connect Data Model as Data source in pages

I’m trying to understand how to do the same thing here: Match slug in Connected Data query editor

I want to pass in a dynamic value into the query editor.