typeorm#RelationId TypeScript Examples
The following examples show how to use
typeorm#RelationId.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Relationship.ts From fosscord-server with GNU Affero General Public License v3.0 | 5 votes |
@Column({})
@RelationId((relationship: Relationship) => relationship.from)
from_id: string;
Example #2
Source File: submission.entity.ts From api with GNU Affero General Public License v3.0 | 5 votes |
@RelationId('form')
readonly formId: number
Example #3
Source File: Employee.ts From type-graphql-dataloader with MIT License | 5 votes |
@Field((type) => [Number])
@RelationId((employee: Employee) => employee.certs)
certIds: number[];
Example #4
Source File: submission.field.entity.ts From api with GNU Affero General Public License v3.0 | 5 votes |
@RelationId('field')
readonly fieldId: number
Example #5
Source File: Message.ts From fosscord-server with GNU Affero General Public License v3.0 | 5 votes |
@Column({ nullable: true })
@RelationId((message: Message) => message.guild)
guild_id?: string;
Example #6
Source File: surveys.entity.ts From aqualink-app with MIT License | 5 votes |
@RelationId((survey: Survey) => survey.site)
siteId: number;
Example #7
Source File: Channel.ts From fosscord-server with GNU Affero General Public License v3.0 | 5 votes |
@Column({ nullable: true })
@RelationId((channel: Channel) => channel.guild)
guild_id?: string;
Example #8
Source File: ChatRoom.entity.ts From bouncecode-cms with GNU General Public License v3.0 | 5 votes |
@RelationId((entity: ChatRoomEntity) => entity.category)
categoryId: number;
Example #9
Source File: latest-data.entity.ts From aqualink-app with MIT License | 5 votes |
@ApiProperty({ example: 15 })
@RelationId((latestData: LatestData) => latestData.site)
siteId: number;
Example #10
Source File: Channel.ts From fosscord-server with GNU Affero General Public License v3.0 | 5 votes |
@Column({ nullable: true })
@RelationId((channel: Channel) => channel.parent)
parent_id: string;
Example #11
Source File: survey-media.entity.ts From aqualink-app with MIT License | 5 votes |
@RelationId((surveyMedia: SurveyMedia) => surveyMedia.surveyPoint)
surveyPointId: number;
Example #12
Source File: waiting.entity.ts From 42_checkIn with GNU General Public License v3.0 | 5 votes |
@RelationId((waiting: Waiting) => waiting.user)
private userId: number;
Example #13
Source File: Guild.ts From fosscord-server with GNU Affero General Public License v3.0 | 5 votes |
@Column({ nullable: true })
@RelationId((guild: Guild) => guild.system_channel)
system_channel_id?: string;
Example #14
Source File: log.entity.ts From 42_checkIn with GNU General Public License v3.0 | 5 votes |
@RelationId((log: Log) => log.card)
private cardId: number;
Example #15
Source File: Guild.ts From fosscord-server with GNU Affero General Public License v3.0 | 5 votes |
@Column({ nullable: true })
@RelationId((guild: Guild) => guild.rules_channel)
rules_channel_id?: string;