EdgeQL Tutorial

Polymorphism

Subtopics

The [IS Type] construct can also be used on any expression to filter out all the objects that don't correspond to the specified type (we've already seen it used with reverse links). Additionally, since the resulting expression is now guaranteed to be of the specified type, the type-specific links and properties can now be accessed on it. Try it out with the base type Object or Media:

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