Database Reference
In-Depth Information
byreturning the fullpathfromthe starting user node,viaall friends, totherecommended
movie. The following snippet illustrates this:
To return the path as a query result, you need to be able to reference it by giving it an iden-
tifier . Then, you simply return the referenced path by specifying the identifier in the
return clause.
The returned path output will contain all nodes and relationships that belong to it:
| "Alien"
| [
Node[1]{
name->"John Johnson",
year_of_birth->1982,
type->"User"
},
:IS_FRIEND_OF[1] {},
Node[3]{
name->"Jack Jeffries",
cars_owned->[Ljava.lang.String;@3927ff0d,type->"User"
},
:HAS_SEEN[5] {stars->5},
Node[5]{
name->"Alien",type->"Movie"
}
] |
| "Heat"
| [
Node[1]{
name->"John Johnson",
year_of_birth->1982,
type->"User"
},
:IS_FRIEND_OF[0] {},
Node[2]{
name->"Kate Smith",
locked->true,type->"User"
},
Search WWH ::




Custom Search