Like many other programming languages EdgeQL has an
operator that checks whether a given object is an
instance of a particular type. This is a run-time check
and it takes inheritance into consideration. Try
applying it to different Media objects:
Input
SELECT Media {
id,
__type__: {
name
},
is_uploaded_type := Media IS UploadedMedia
};