Here we can see two games are on the same word 0x6d0f88.
Does dGraph language car filter out duplicate nodes based on a predicate value/UID?
Or do I have to fetch more results and then filter them programmatically?
Thanks for your answer.
However I don’t have any predefined “value” to exclude in a filter.
I’d like to exclude previously found word UIDs.
In a traditional programmatic loop, the first iteration would be without constraints, the second would exclude the word UID of the first iteration, and the third iteration would exclude both first and second word UIDs.
For the record I found a way, but it requires a reverse index on word predicate :
{
games as var(func: type(Game)) { // plus game filters
uid
words as word
}
me(func: uid(words), first: 3) {
~word @filter(uid(games)) (first: 1) {
uid
word { uid }
}
}
}
And now all returned games are on a different word: