knox 修订了这个 Gist . 跳至此修订
1 file changed, 5 insertions
TypeORM-readme-23.ts(file created)
@@ -0,0 +1,5 @@ | |||
1 | + | import { Photo } from "./entity/Photo" | |
2 | + | import { AppDataSource } from "./index" | |
3 | + | ||
4 | + | const savedPhotos = await AppDataSource.manager.find(Photo) | |
5 | + | console.log("All photos from the db: ", savedPhotos) |
更新
更早