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 b349d25bd7
commit 943c8b4bab
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3

View file

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