Hi I have troubles to migrate GRAPH_TRAVERSAL function to new 3.0 syntax. 

for g in GRAPH_TRAVERSAL('linkGraph', {sn: "1.1.1.1"},"any", {uniqueness: 
{vertices: "global", edges: "global" },filterVertices : 
"myfunctions::deviceFilter"})[**].vertex.sn return g

arDb.createFunction('myfunctions::deviceFilter',
    String(function(config, vertex, path) {
      if (vertex.void === true) {
        return ['prune', 'exclude'];
      }
      if (typeof vertex.sn === 'undefined') {return 'exclude';}
    })
);

I tried something like this:

FOR v IN any 'vDevice/1895775' GRAPH 'linkGraph'

but when I add min..max, where max is some higher number, then query is 
aborted, I guess because of cycles in graph. I have no idea how to add 
uniqeness.

Thanks

Roman

-- 
You received this message because you are subscribed to the Google Groups 
"ArangoDB" 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