-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): Add method (
getMany
) to folder repository to filter, so…
…rt, and paginate folders (no-changelog) (#13290)
- Loading branch information
1 parent
5b82f34
commit 82d2fa6
Showing
8 changed files
with
851 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { Entity, JoinColumn, ManyToOne, PrimaryColumn } from '@n8n/typeorm'; | ||
|
||
import type { Folder } from './folder'; | ||
import type { TagEntity } from './tag-entity'; | ||
|
||
@Entity({ name: 'folder_tag' }) | ||
export class FolderTagMapping { | ||
@PrimaryColumn() | ||
folderId: string; | ||
|
||
@ManyToOne('Folder', 'tagMappings') | ||
@JoinColumn({ name: 'folderId' }) | ||
folders: Folder[]; | ||
|
||
@PrimaryColumn() | ||
tagId: string; | ||
|
||
@ManyToOne('TagEntity', 'folderMappings') | ||
@JoinColumn({ name: 'tagId' }) | ||
tags: TagEntity[]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.