Spring data neo4j: proper return type for query method which returns paths

时间:2018-02-01 18:36:58

标签: neo4j spring-data-neo4j spring-data-neo4j-4 spring-data-neo4j-5

I want to implement query method which return different paths as a result:

@Query("MATCH p =(michael { name: 'Michael Douglas' })-->() RETURN p") 
T getPaths();

I am confused whether method return should be Iterable> as stated here, since the question was posted more then 2 years ago:

@Query("MATCH p =(michael { name: 'Michael Douglas' })-->() RETURN p") 
 Iterable<Map<String,Object>> getPaths();

Does any one know whether latest version of SDN has different approach for that?

0 个答案:

没有答案