Type Orm Relations between entities does not bring the data

Asked

Viewed 40 times

0

My question is how the typeorm brings data from your relationships.

const user = await this.userRepository.findOne({
            where: { id },
            relations: ['userAddress', 'emails', 'phone_numbers', 'person', 'licensing'],
        });

With this query in typeorm it should not return me all related entities? The query executes but does not bring the data. According to the documentation https://github.com/typeorm/typeorm/blob/master/docs/relations.md, I was supposed to be returning the data, someone could explain to me if any configuration is missing in the entity or something. Thanks in advance.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.