title: Neo4j Cypher UNWIND keys
body: <p>I'm trying to create the following query: </p>
  
  <pre><code>MATCH (v:Value) 
  WHERE v.id = {valueId} 
  UNWIND keys(v) AS key 
  WITH v, key 
  WHERE key CONTAINS 'property.' 
  REMOVE key
  </code></pre>
  
  <p>but it fails right now with the following error: </p>
  
  <pre><code>org.neo4j.driver.v1.exceptions.ClientException: Unexpected end of input: expected an identifier character, whitespace, node labels, '{', a property map, a relationship pattern, '.' or '(' (line 1, column 122 (offset: 121))
  "MATCH (v:Value) WHERE v.id = {valueId} WITH v UNWIND keys(v) AS key WITH v, key WHERE key CONTAINS 'property.' REMOVE key"
                                                                                                                           ^ 
  </code></pre>
  
  <p>What is wrong with this query and how to fix it?</p>