Light
Dark
System
v4latest
v5dev
v4latest
v3
v2
v1

Introspection

All of the schema information in EdgeDB is stored in the schema module and is accessible via introspection queries.

All the introspection types are themselves extending BaseObject, so they are also subject to introspection as object types. The following query will give a list of all the types used in introspection:

Copy
select name := schema::ObjectType.name
filter name like 'schema::%';

There’s also a couple of ways of getting the introspection type of a particular expression. Any Object has a __type__ link to the schema::ObjectType. For scalars there’s the introspect and typeof operators that can be used to get the type of an expression.

Finally, the command describe can be used to get information about EdgeDB types in a variety of human-readable formats.

Light
Dark
System

We use ChatGPT with additional context from our documentation to answer your questions. Not all answers will be accurate. Please join our Discord if you need more help.