Graph select to JSON

Send Snippet To: Save this snippet to Code Collector Pro -- view all relinkit's snippets
language: Java
license: Other

Code for Snippet:

if you know the RID don't search for it but start from it in the target: it's much faster:
select out[@class=owns_store].in as stores from #12:1
Then use the flatten to transform a field as collection of RIDs in the final result set:
select flatten( out[@class=owns_store].in ) as stores from #12:1
comments powered by Disqus


Link to this snippet:

Download to Code Collector

To use the direct link to your snippet on either copy the html from the above section or drag the Download to Code Collector to where you would like to use it.

More Info:

Times Viewed: 219
Date Added: 2015-06-23 19:33:16
Last Modified: 2015-07-01 03:35:44

Web Analytics