TypeORM-readme-44.ts
· 122 B · TypeScript
Brut
export class Photo {
// ... other columns
@ManyToMany(() => Album, (album) => album.photos)
albums: Album[]
}
1 | export class Photo { |
2 | // ... other columns |
3 | |
4 | @ManyToMany(() => Album, (album) => album.photos) |
5 | albums: Album[] |
6 | } |