EdgeQL Tutorial

Sets

Subtopics

EdgeDB has functions that operate on whole sets. These are commonly known as "aggregate functions" in other databases. The set of syntax in their signature makes them easy to spot:

std::count(s: set of anytype) -> int64

Try out a few built-in aggregate functions:

Input
Run
Output Objects
Press the 'Run' button to evaluate the input
Input
Run
Output Objects
Press the 'Run' button to evaluate the input
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.