you can return a path:

> @Query("MATCH p = (n:SomeObj)-[*1..1]->(b) where n.id = {id}  RETURN p")
> public SomeObj getSomeObjectByIdD1(@Param("id") String id);


> Am 22.03.2016 um 21:53 schrieb 'Eric Fulton' via Neo4j 
> <[email protected]>:
> 
> I've got this query:
> 
> @Query(MATCH (n:SomeObj)-[*1..1]->(b) where n.id = '11111'  RETURN *)
> public SomeObj getSomeObjectByIdD1(String id);
> 
> 
> It doesn't seem to be returning the relationships to depth one as I would 
> expect.  Is this not possible?
> 
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Neo4j" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to