Is it possible for @cascade to operate only on filters? For example, if I have a query like the one below, I want to get all of the nodes where edge1 and edge2 meet the filter even if field1 and field2 are not present.
{
node(func: eq(dgraph.type, "Type1")) @cascade {
field1
field2
edge1 @filter(anyofterms(field3, "value1"))
edge2 @filter(anyofterms(field4, "value2"))
}
}
I know I can drop field1 and field2 from the query and get the uids instead, but then I have to do multiple queries to get the nodes. I was hoping to do a single query.