How does DQL judge whether a predicate has duplicate values in dgraph?

ok, so if Dgraph does not support sets, then how does it support Arrays in a set like format in GQL when you cannot add a value more than once? Does it use groupby?