title: How do I find a string in an unknown neo4j database using Cypher?
body: <p><strong>TL,DR:</strong> I need a query which gives me all nodes/relationships which contain a certain value (in my case a string, so much I know), without knowing which property(key) contains the string. I am using neo4j(latest version), meteor (latest version) and the meteor neo4j driver, which is recommended on the neo4j website for meteor.</p>
  
  <p>Currently I am working (as part of my bachelor thesis) on a tool to visualize the output of any Cypher query on any database, regardless of the database contents.</p>
  
  <p>So far I've managed to correctly display nodes/relationships which are coming out. My problem now is to visualize (get nodes and relationships to feed into my frontend) textual queries like (taken from the neo4j movie database, which I am using for development)</p>
  
  <pre><code>MATCH (tom:Person {name:"Tom Hanks"})-[:ACTED_IN]-&gt;(m)&lt;-[:ACTED_IN]-(coActors)
  RETURN coActors.name 
  </code></pre>
  
  <p>This kind of queries only returns an array of strings and not whole nodes or relationships. I now need some way (preferably a Cypher query) to get all nodes which contain for example the string "Audrey Tatou". </p>
  
  <p>The problem I've now run into is that I didn't find a way to write a query which doesn't need something like</p>
  
  <pre><code>MATCH n
  WHERE Person.name = "some name"
  </code></pre>
  
  <p>Since I don't know anything about the contents of the database I cannot use</p>
  
  <pre><code>WHERE propertyName = "propertyValue"
  </code></pre>
  
  <p>since I only know the value but not the name of the property.</p>