Table/Column name too long with large relation depth
Because Postgres aliases have a 63 byte limit, our nested query (like 6 levels deep) fails.
The error we're seeing is:
table name \"user__organizations__organization__workspaces__organization__us\" specified more than once
To fix this, the table name alias needs to be hashed with a maxLength, to ensure the alias never goes beyond the limit, thus supporting endless relation depth.
If you like, we could create a merge request to enable this.