Dernière activité 1729146014

Révision fc6845ebbf67614752a90e66f7a6ae8574ab19d7

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()