Introspection
Subtopics
All objects in EdgeDB have a __type__
link which
points to the schema type that the object is actually
implementing. This can be used for introspection queries
or to just add the object type information to a query.
Let's fetch all media with their ids and corresponding
types:
Input
Run
Output Objects
Press the 'Run' button to evaluate the input
Note that this is different from introspect
as it
provides run-time type information for concrete objects,
whereas the introspect
expression is resolving types
statically. Compare this usage of introspect
to the
previous query:
Input
Run
Output Objects
Press the 'Run' button to evaluate the input