I use this code
const kontakt = @All of Name with nulls || @Pure Name;
const mandant = @All of Name with nulls || @companyDomain;
If there are no relations it should pick the value from the other field instead. Its working, when there is a relation, but if there is none, I get empty values instead of the fields after the || in the definition.