How I can get tree ? #934
-
I checked the code and didn`t find implementation of Tree Step. Let`s say we have Employee Vertex and a Manages Edge .., what I need is vertexes with "parent Id" or use the ".tree()" step The return type I guess should be ValueTask<(EmployeeVertex, IEnumerable)[]> |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
From the provided required result type (
Is my assumption correct? If not, there's unfortunately no tree step support in Gremlinq. |
Beta Was this translation helpful? Give feedback.
-
What exactly is missing ? |
Beta Was this translation helpful? Give feedback.
-
@jayaemekar Have a look at e.g. this unit test to get an idea of how to use Project...By... correctly. |
Beta Was this translation helpful? Give feedback.
-
Hi, this project() by() out() fold() pattern is 10x more expensive for same result as tree() operation would be. With cosmos, we are using this mentioned pattern, and for example an query to find managers for employees costs 375 RU's. Similar query with tree() operation costs 40 RUs... |
Beta Was this translation helpful? Give feedback.
-
@jayaemekar btw, you can now find the Tree() -operator in the newest release. |
Beta Was this translation helpful? Give feedback.
@jayaemekar btw, you can now find the Tree() -operator in the newest release.