-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@recurse query not fetching entire subgraph from root node #2555
Comments
@danielmai @manishrjain I propose we close this issue and (perhaps) turn this into a feature request. But I don't believe it is a bug. The current implementation of Line 21 in 788354f
does not support multi-level predicates. Because of this, the following query:
is equivalent to
The expected result of this query is exactly the final result shown in the above comment. |
@srfrog can you update this issue report with the changes you're planning to make? |
i agree with @manishrjain (from video chat) and @jlapacik this is a new feature. |
Discussed with @manishrjain.
Should get the Will keep this issue open as a bug. Query:
Actual Response:
Expected Response:
|
OP of the original issue here. Thanks for this! |
That hasn't been decided yet, but it's likely. Thanks for submitting the issue! |
Bug report
This issue comes from https://discuss.dgraph.io/t/modeling-a-tree-and-getting-a-subtree-from-a-node/3087.
Desktop:
Containerization:
Describe the bug:
Running a query with
@recurse
doesn't return the expected subgraph results.Steps to reproduce the behavior:
Start a new Dgraph (1 Zero, 1 Server) running with default ports accessible via localhost.
Run the following mutation:
Response:
Run this query to double-check that the data mutation inserted the data as we expected:
Response:
Add
@recurse
to theme
query from Step 4 and see that the query isn't the same.Response:
Expected behavior:
The
@recurse
keyword recursively get the subgraph from the root node.The text was updated successfully, but these errors were encountered: