[arangodb-google] Noob question about joins (and maybe graphs)

2016-10-05 Thread Gregory Bleiker
Hi all I'm getting started and am having a hard time getting my head around some things. Maybe someone can help me out... I have two collections, 'Tags' and 'Objects', and I have an edge collection 'tagged' Objects consists of 'car', 'airplane' and 'train' Tags consists of 'land','air','public

[arangodb-google] Re: How do I return a sub-graph in one query

2016-10-05 Thread Allen Zhao
It works!!! Great community support. Thank you! On Wednesday, October 5, 2016 at 1:09:43 PM UTC-4, Allen Zhao wrote: > > Hi There, > > Want to figure a way to query a sub graph. E.g. I want to query from a > startVertex with depth 2 and list all nodes and edges in a sub-graph json. > > I can u

[arangodb-google] Re: How do I return a sub-graph in one query

2016-10-05 Thread Simran Brucherseifer
Hey Allen, maybe you can just return the traversal path? Example query: FOR v, e, p IN 2..2 OUTBOUND "yourColl/startVertex" edgeCollection RETURN p [ { "vertices": [ {"_id": "yourColl/startVertex", "x": 100, "y": 100}, {"_id": "yourColl/anotherVertex", "x": 200, "y": 300},

[arangodb-google] How do I return a sub-graph in one query

2016-10-05 Thread Allen Zhao
Hi There, Want to figure a way to query a sub graph. E.g. I want to query from a startVertex with depth 2 and list all nodes and edges in a sub-graph json. I can use two queries to return nodes and edges and merge them into one. Is there a way to do that in one query? { nodes: [ {

[arangodb-google] Re: Calculating behaviour flow

2016-10-05 Thread Simran Brucherseifer
Hey Daniel, did you make any progress? Still have questions? Thanks, Simran -- 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 arangodb+unsubscr...@googlegroups.com.

[arangodb-google] Re: Using geo indexes

2016-10-05 Thread Simran Brucherseifer
Geo indexes can only be used by calling geo functions that utilize them (NEAR, WITHIN, WITHIN_RECTANGLE). These functions return documents in an array, sorted by distance (closest distance first). It's currently not possible to add additional filter criteria while still using the geo index, als