EdgeQL Tutorial

Introspection

Subtopics

The introspect operator gets the schema object corresponding to a given type. This object can be used in introspection queries, like the ones from the previous section. Let's try introspecting Person:

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

This operator can also work with expressions, statically inferring the expression type and getting the schema object that corresponds to it. In order to do that an additional keyword typeof is required:

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