neo4j how to return all property of shortest path in php


$query = ‘MATCH path=(n:UsrInfo)-[]-(m:GroupInfo)
RETURN [x in nodes(path) | x.Fname] as Fnames, [y in nodes(path) | y.Lname] as Lnames, [z in relationships(path) | z.Status] as Statuss’;
Output :

Array
(
    [0] => Array
        (
            [0] => Alok
            [1] => 
        )

    [1] => Array
        (
            [0] => Kumar
            [1] => 
        )

    [2] => Array
        (
            [0] => 0
        )

)
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s