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 User:

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