最后活跃于 1729145981

修订 c3709485534d50f55b92fefe874382e98b79b5cb

TypeORM-readme-35.ts 原始文件
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})