Zuletzt aktiv 1729145981

TypeORM-readme-35.ts Orginalformat
1import { Photo } from "./entity/Photo"
2import { PhotoMetadata } from "./entity/PhotoMetadata"
3import { AppDataSource } from "./index"
4
5const photoRepository = AppDataSource.getRepository(Photo)
6const photos = await photoRepository.find({
7 relations: {
8 metadata: true,
9 },
10})