D
Size: a a a
D
К
MX
п
ВС
КБ
NM
MV
getManyAndCountNM
NM
MV
getManyAndCount(): Promise<[Entity[], number]>;NM
x
const data = this.userRepository.findOne(id, {relations: ['group']}), потом просто удаляю по индексу из объекта data.group.splice(matchIndex, 1); и потом сохраняю: this.userRepository.save(data) и это работает.MV
Т
Т
К
synchronize: true@Entity()
export class Stock {
@PrimaryGeneratedColumn()
id: number
@ManyToOne(() => Product, (product: Product) => product.availability)
product: Product
@ManyToOne(() => Branch, (branch: Branch) => branch.availability)
branch: Branch
@Column()
quantity: number
}
🏡K
К
🏡K