title: Typeorm - Find entries by ManyToMany relation
body: <p>I am using Nestjs with Typeorm and Mysql, and I can't figure out a good way to filter entries by their many to many relation.</p>
  
  <p>I have these 2 entities: </p>
  
  <p><strong>Group Entity:</strong></p>
  
  <pre class="lang-js prettyprint-override"><code>@Entity({ name: 'groups' })
  export class Group {
      @ManyToMany(() =&gt; Tag, { eager: true })
      @JoinTable()
      tags: Tag[];
  }
  </code></pre>
  
  <p><strong>Tag Entity</strong></p>
  
  <pre class="lang-js prettyprint-override"><code>@Entity({ name: 'tags' })
  export class Tag {
      @Column()
      @Index({ unique: true })
      tag?: string;
  }
  </code></pre>
  
  <p>And would like to search all groups that have a tag with a specific text.</p>
  
  <p>ie. all groups that have the <code>tag.tag</code> "sport" </p>
  
  <p>Tried this code: </p>
  
  <pre class="lang-js prettyprint-override"><code>const args = {
      where: [
          {
              'tags': In([Like(`%sport%`)]),
          }
      ],
      relations: ['tags'], // TAGS
      take: filter.take,
      skip: filter.skip,
      order: filter.order
  };
  
  return super.findAll(args);
  </code></pre>
  
  <p>but it doesn't seem to work..</p>
  
  <p>any help would be great!</p>