EdgeQL Tutorial

Polymorphism

Subtopics

You can also make polymorphic queries using shapes. For example, to get all the different media from a particular user, try:

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

Combining more of the things covered earlier in this tutorial you can make a query to fetch the most recent media in a user's feed like this:

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

Finally, all the data necessary to render a user's page with their feed can be packed into a single query:

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