Skip to content
Snippets Groups Projects
variable.model.ts 459 B
Newer Older
import { Field, ObjectType } from "@nestjs/graphql";
import { Category } from "./category.model";
import { Group } from "./group.model";

@ObjectType()
export class Variable {
    @Field()
    id: string;

    @Field({ nullable: true })
    label?: string;

    @Field()
    type: string;

    @Field({ nullable: true})
    description?: string;

    @Field(type => [Category])
    enumerations: Category[];

    @Field(type => [Group])
    groups: Group[];
}