Attualmente ho questo codice per ottenere i miei risultati
rolesCanAssign = await this.rolesRepository.find({
where: {
VALCompany: user.VALCompany,
},
Ma ho bisogno di aggiungere una O l'operatore a questo in CUI e volevo farlo come questo
where: [{VALCompany:user.VALCompany},{isNull(VALCompany)}]
Ottengo un errore che dice che mi aspettavo un '{'. Per il momento, quindi utilizzare la seguente, ma vorrei tipo come nell'esempio precedente
il codice che attualmente lavora per me:
where: 'VALCompany IS NULL or VALCompany IN (' + user.VALCompany + ')'