Is field is alias/relationship or a real column

How does directus determine if a field is alias/relationship or a real database field/column?

There doesn’t seem to be a flag in the db to say “this is just a virtual field”, but “special” shows things like m2m o2m. I looked through the code, but I like setting breakpoints and stepping through but struggled to get that working using the docker setup and 11.13.2.

It’s based on relationships as read from foreign keys from the database combined with the metadata in directus_relations :slight_smile: