Skip to content

Commit

Permalink
working on the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pleerock committed Mar 21, 2022
1 parent b53a481 commit c8fb1bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -661,6 +661,7 @@ import { DataSource } from "typeorm"
import { Photo } from "./entity/Photo"
import { AppDataSource } from "./index"

const photoRepository = AppDataSource.getRepository(Photo)
const allPhotos = await photoRepository.find()
console.log("All photos from the db: ", allPhotos)

Expand Down

0 comments on commit c8fb1bb

Please sign in to comment.