EdgeQL Tutorial

Sets

Subtopics

Ultimately all queries in EdgeDB return sets (or multi-sets) of results. In fact, all values are treated as sets as well, so that a literal 1 is taken to mean the set {1}. You may have noticed that in all the previous query examples.

All elements of a set in EdgeDB have to be of the same type.

You can construct a set using set literal {...} notation:

Input
Run
Output Objects
Press the 'Run' button to evaluate the input

We use ChatGPT with additional context from our documentation to answer your questions. Not all answers will be accurate. Please join our Discord if you need more help.