const res = await connection
.getRepository(Projects)
.createQueryBuilder('projects')
.leftJoinAndSelect('projects.telemarketing', 'telemarketings')
.where('projects.id = :projectId AND telemarketings.id NOT IN (:...terlemarketingId)', { projectId: 236, terlemarketingId: [3, 4] })
.getOne()
res.telemarketing.id = 1
await connection.getRepository(Projects).save(res)