cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

In the result I get only one link for each point

Good afternoon, as a result of the execution of this query "MATCH (n: clients) - [r * 1..4] - (m) WHERE ID (n) = 73487 RETURN m, n, r LIMIT 1000" I get an array of 30 elements . In the neo4j browser, I get a normal graph, and the response to the code tab contains arrays for r. When using the connection through the driver, I get only one link in response. What could be the problem?

2 REPLIES 2

Решил проблему подключением через протокол bolt

Although it's odd but it seems that the bolt driver returns a Path instance for the r
Instead of a collection of relationships. Not sure why.

As the syntax you use is deprecated it's probably better to use

MATCH path = (n: clients) - [* 1..4] - (m) 
WHERE ID (n) = 73487 
RETURN m, n, path LIMIT 1000