I was playing around with Recurse Query and wanted to return all names in one level.
The query looks like this:
{
recurse(func: gt(count(~genre), 30000), first: 1) {
allUids as _uid_
name@en
~genre (first:10) @filter(gt(count(starring), 2))
starring (first: 2)
performance.actor
}
q (func: uid(allUids)) {
name@en
}
}
However, I wasn’t able to add var to recurse query to hide it’s result in the output. I tried:
recurse var(func: gt(count(~genre), 30000), first: 1) {
var recurse(func: gt(count(~genre), 30000), first: 1) {
Also, query result “q” contains only performance.actor names - genre names for example are left out.
The actual reason for this is that I need to perform a recursive delete and I thought that when I can get all these necessary uid values, then I can delete them.
Perhaps there is better option to delete recursively?