feat: update infra configs mutation added

This commit is contained in:
Mir Arif Hasan
2023-11-24 20:37:35 +06:00
parent 4e188f3c11
commit 0a10f7c654
7 changed files with 109 additions and 8 deletions

View File

@@ -1,14 +1,25 @@
import { Field, ObjectType } from '@nestjs/graphql';
import {
ArgsType,
Field,
InputType,
ObjectType,
registerEnumType,
} from '@nestjs/graphql';
import { InfraConfigEnum } from 'src/types/InfraConfig';
@ObjectType()
export class InfraConfig {
@Field({
description: 'Infra Config Name',
})
name: string;
name: InfraConfigEnum;
@Field({
description: 'Infra Config Value',
})
value: string;
}
registerEnumType(InfraConfigEnum, {
name: 'InfraConfigEnum',
});