EdgeQL Tutorial

Objects

Subtopics

There can also be various relationships between objects in EdgeDB. They are called links and accessing them is very similar to accessing properties. However, an important thing to remember is that following links always results in a set of objects (without duplicates), unlike properties. For example, to query all the authors of Text try:

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

Links in EdgeDB are directional, but they can be traversed in reverse direction and refer to the object at the start of a link by using the .< instead of .. When doing that it's also necessary to specify the type of the object at the start using [IS SomeType]. For example, to get all those who follow some user try:

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