From 6541cfda4e88d142936f70415dbf72d4102ad765 Mon Sep 17 00:00:00 2001 From: David Mehren Date: Sat, 3 Oct 2020 15:37:57 +0200 Subject: [PATCH] NoteEntity: Enable eager loading and cascades for tags Signed-off-by: David Mehren Co-authored-by: Yannick Bungers --- src/notes/note.entity.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/notes/note.entity.ts b/src/notes/note.entity.ts index 1f412775b..817c857f9 100644 --- a/src/notes/note.entity.ts +++ b/src/notes/note.entity.ts @@ -74,6 +74,7 @@ export class Note { @ManyToMany( _ => Tag, tag => tag.notes, + { eager: true, cascade: true }, ) @JoinTable() tags: Tag[];