EdgeQL has a number of basic operators for sets. Two of these
are union
and distinct
.
union
simply merges two sets together. This may result
in duplicate entries:
Operators can be used more than once in a single statement:
distinct
gets rid of duplicate entries producing a
proper set:
Sets cannot be elements of other sets in EdgeQL, making
a nested syntax equivalent to a union
.
This is also consistent with the notion that everything
is a set, including singleton literal values: