This is the filtering.
p1 as predicate1@filter(eq(predicate3, "some_text"))
You are applying a rule recursively beforehand.
It is not clear to me what you want. But Dgraph doesn’t work with results. It doesn’t store the result in the memory to do some sanitation or operation by the user(you). That you have to do on the client’s end.
If maybe I’m missing something from your explanation. Please, make an example. Use JSON and flows.
e.g:
- This is what I get.
- This is what I want.