Dernière activité 1729146014

TypeORM-readme-36.ts Brut
1import { Photo } from "./entity/Photo"
2import { PhotoMetadata } from "./entity/PhotoMetadata"
3import { AppDataSource } from "./index"
4
5const photos = await AppDataSource.getRepository(Photo)
6 .createQueryBuilder("photo")
7 .innerJoinAndSelect("photo.metadata", "metadata")
8 .getMany()