-
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
Add other filters to expand() #5803
Comments
using predicate "in" with @reverse. |
The link isn't working for me.
But I don't get your point. Are you saying that expand function has filters? last time I checked the code it wasn't. |
https://dgraph.io/docs/query-language/expand-predicates/#filtering-during-expand expand supports type filters only, but they do not work on reverse predicates. |
my bad not reading this issue correctly. |
This issue has been stale for 60 days and will be closed automatically in 7 days. Comment to keep it open. |
Experience Report
reference: https://discuss.dgraph.io/t/how-to-find-relationship-between-two-nodes/7495/3?u=micheldiz
What you wanted to do
Use expand func to reduce hard typing. This increases the users experience.
What you actually did
Why that wasn't great, with examples
The only problem is that you need to hard type all possible edges to accomplish that. Using "Expand(Type)" with a filter it would catch all possible edges from the Type Definition and apply the filter as a "template".
The text was updated successfully, but these errors were encountered: