Hi Nicolas, Which version of OrientDB are you using?
Thanks Luigi 2017-06-14 16:08 GMT+02:00 nicolas treiber <[email protected]>: > Hi, > I have a weird problem with Match queries with a WHILE. > I have two classes: Gallery and Folder. Galleries and Folders can have > multiples 'has_folder' edges to other folders (it's a folder tree), and I > wanted to fetch the folder tree of a Gallery. I tried the following: > > MATCH {class: Gallery, as: g}.(outE('has_folder').inV()){class: Folder, > as: f, while: ($depth < 6)} RETURN g, f > > But it returns no result. After some tries, I found out that it comes from > the "class: Folder" field. If I try: > > MATCH {class: Gallery, as: g}.(outE('has_folder').inV()){while: ($depth < > 6)} RETURN g, f > And I get the expected results... with a weird tuple where g and f are > both the gallery (I checked, the gallery does not have an edge to itself), > looks like a bug to me, and I think it might cause the problem with the > first query (because OrientDB would find the relationship gallery-->gallery > first, but since the Gallery does not have the class Folder it stops > there...) > > -- > > --- > You received this message because you are subscribed to the Google Groups > "OrientDB" 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. > -- --- You received this message because you are subscribed to the Google Groups "OrientDB" 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.
