post y las tags tienen una relación ManyToMany. En typeorm, esto es perfectamente válido:
await this.postsRepo.find({ take: limit, skip: limit * pageNumber, join: { alias: 'post', innerJoinAndSelect: { tags: 'post.tags', }, }, }); Si bien también quiero poder filtrar post.tag por ID, algo como esto:
await this.postsRepo.find({ take: limit, skip: limit * pageNumber, join: { alias: 'post', innerJoinAndSelect: { tags: { alias: 'post.tags', on: { 'post.tags': In([validTagIds]) } } }, },});
Pero no quiero usar selectQueryBuilder . ¿Es posible usando la función .find ?