String replacement in query.search in GraphQL?

So using variables in the resources is pretty straightforward, but I need to hit search for a couple things and I couldn’t figure out if there was a way to do string replacement for the search.query arg value since it is for the same params.