Introspection
Subtopics
EdgeDB schema is fully introspectable. There are two approaches to introspection corresponding to two different use-cases: human-oriented and query-oriented.
For human-oriented introspection the goal is to quickly
see some useful information about the database structure
expressed as either DDL, SDL or a human-readable text
summary. The describe
command does exactly that. By
default it produces the DDL command needed to create the
schema object in question:
Input
Run
Output Objects
Press the 'Run' button to evaluate the input
It is also possible to get an SDL snippet or even see an entire module as SDL:
Input
Run
Output Objects
Press the 'Run' button to evaluate the input
Input
Run
Output Objects
Press the 'Run' button to evaluate the input
To see more detailed information, such as all the inherited
links and properties, etc. use the text
mode:
Input
Run
Output Objects
Press the 'Run' button to evaluate the input