Is there a way to retrieve all articles of a specific user using the TypeORM package?
In Sequelize, I have the following function:
async findAllByUser(userUuid: string, findOptions: object): Promise<Article[]> {
return await Article.findAll<Article>({
include: [{
model: User,
where: {
uuid: userUuid
}
}]
});
}
I am interested in finding an alternative method for achieving this in TypeORM.