NoteEntity: Enable eager loading and cascades for tags

Signed-off-by: David Mehren <git@herrmehren.de>
Co-authored-by: Yannick Bungers <git@innay.de>
This commit is contained in:
David Mehren 2020-10-03 15:37:57 +02:00
parent 99ab9f04c2
commit 6541cfda4e
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3

View file

@ -74,6 +74,7 @@ export class Note {
@ManyToMany(
_ => Tag,
tag => tag.notes,
{ eager: true, cascade: true },
)
@JoinTable()
tags: Tag[];