title: Using kleene star with parameter in neo4j query via spring boot
body: <p>I want to do a query like</p>
  
  <pre><code>"match (x: Person {name: "Adam"}), (x)-[:friend *..n]-(y) return y"
  </code></pre>
  
  <p>Where n is some parameter. Trying to execute this via spring boot as</p>
  
  <p><code>"match (x: Person {name: {name: "Adam"}}), (x)-[:friend *..{distance}]-(y) return y"</code>  where I have an @Param("name"), @Param("distance") ... it tells me</p>
  
  <pre><code>Parameter maps cannot be used in MATCH patterns (use a literal map instead, eg. "{id: {param}.id}")
  </code></pre>
  
  <p>Which I can't make sense of, how can I do what I want?</p>