Introspection

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

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