I want to union several query blocks and only then use pagination.
For example:
result(func: eq(param,value) {
expand(Data)
someVar as somePredicate
uid(resurseResVar)???
val(resurseResVar)???
}
var(func:uid(someVar)) @recurse {
resurseResVar as uid
}
And then I want to expand data from resurseResVar. But uid(resurseResVar) returns error. The same with the query variables if I set something like this:
resurseData as d(func:uid(someVar)) @recurse {
uid
somePredicate
}
I thought about it, but I need a way to divide queries between each other. Because in this way I got a bunch of entities without any way to mark them with a correct alias in the result JSON.
I would like to do it as: