Re: [Neo4j] Query using neo4j embedded in java

2014-03-14 Thread Michael Hunger
Please take my answer on SO into consideration before moving on: Try to stick to Cypher that makes it much easier. Do the online tutorial (http://neo4j.org/learn/online_course) to get you up to speed with Cypher. Also use the Cypher Reference Card. (http://neo4j.org/resources/cypher)

[Neo4j] Query using neo4j embedded in java

2014-03-13 Thread Saugata Bose
I have 2 nodes: person{name, password} and city{name}. and a relationship between these two is (person) [:LIVES_IN]-(city). I am trying to generate a query to find out who are those people living in city X(where X will be coming from a text box). I am trying to construct this query following

Re: [Neo4j] Query using neo4j embedded in java

2014-03-13 Thread Luanne Coutinho
Hi, There are a number of concepts here that I'd advise understanding in some more depth- 1. The ExecutionResult api and structure of Cypher statements (see that you return a person but expect to read a column called name) 2. Labels: Your query includes a city label but your code does not create