Create Relation with Fields from both sides (#2480)

* Create relation with fields from both sides

* update metadata codegen schema
This commit is contained in:
Weiko
2023-11-13 17:22:15 +01:00
committed by GitHub
parent 05dbde79cf
commit 3de2fc72dc
3 changed files with 36 additions and 19 deletions

View File

@ -33,23 +33,38 @@ export class CreateRelationInput {
@IsString()
@IsNotEmpty()
@Field()
name: string;
fromName: string;
@IsString()
@IsNotEmpty()
@Field()
label: string;
toName: string;
@IsString()
@IsNotEmpty()
@Field()
fromLabel: string;
@IsString()
@IsNotEmpty()
@Field()
toLabel: string;
@IsString()
@IsOptional()
@Field({ nullable: true })
fromIcon?: string;
@IsString()
@IsOptional()
@Field({ nullable: true })
toIcon?: string;
@IsString()
@IsOptional()
@Field({ nullable: true })
description?: string;
@IsString()
@IsOptional()
@Field({ nullable: true })
icon?: string;
@HideField()
workspaceId: string;
}