Utoljára aktív 1729145419

Revízió 8ea3b75e960906cb921866482bb68e4bf95b49e4

TypeORM-readme-27.ts Eredeti
1import { Photo } from "./entity/Photo"
2import { AppDataSource } from "./index"
3
4const photoRepository = AppDataSource.getRepository(Photo)
5const photoToRemove = await photoRepository.findOneBy({
6 id: 1,
7})
8await photoRepository.remove(photoToRemove)