feat: add object/field create/update resolvers (#1963)

* feat: add object/field create/update resolvers

* fix tests
This commit is contained in:
Weiko
2023-10-11 12:03:13 +02:00
committed by GitHub
parent 6a3002ddf9
commit f97228bfac
32 changed files with 657 additions and 429 deletions

View File

@ -0,0 +1,32 @@
import { Field, InputType } from '@nestjs/graphql';
import { IsNotEmpty, IsOptional, IsString } from 'class-validator';
@InputType()
export class CreateObjectInput {
// Deprecated
@IsString()
@IsNotEmpty()
@Field()
displayName: string;
@IsString()
@IsOptional()
@Field({ nullable: true })
displayNameSingular?: string;
@IsString()
@IsOptional()
@Field({ nullable: true })
displayNamePlural?: string;
@IsString()
@IsOptional()
@Field({ nullable: true })
description?: string;
@IsString()
@IsOptional()
@Field({ nullable: true })
icon?: string;
}