[Neo4j] Tests with Spring Boot 1.4 & Spring Data Neo4j?

2016-04-28 Thread Tim Colson
Anyone have an example of unit tests running for Neo4j inside a Spring Boot 1.4m2 webapp? I've followed the latest Spring Boot docs, but it seems unable to wire up the Neo4j repository, maybe b/c there is no web session, but a mock and/or webEnvironment didn't help. Error: *"Injection of auto

Re: [Neo4j] I want a query which returns a subgraph...

2016-04-28 Thread Alan Robertson
The query isn't quite right. It has an error in it (variable n already used) and something about the order of operations causes it to return more than one row - with duplicates ;-) But this one seems to do the trick: |match path = shortestPath( (n)-[*]->(m) ) return collect(distinct unwind(nodes(

Re: [Neo4j] I want a query which returns a subgraph...

2016-04-28 Thread Alan Robertson
Hi, Michael Hunger separately provided me this query - which is a prototype query which looks like it will do what I want. It includes features of Cypher I was not familiar with (particularly unwind): > | match path = shortestPath( (n)-[*]->(m) ) unwind nodes(path) as n > with collect(distinc