Newer
Older
import {Field, ObjectType} from "@nestjs/graphql";
import {UnlockableEntry} from "./unlockable-entry.model";
import {Entry} from "./entry.model";
@ObjectType()
export class Agent {
@Field()
id: string;
@Field()
slug: string
@Field()
name: string
@Field(() => [UnlockableEntry])
unlocks: UnlockableEntry[];
@Field(() => [Entry])
entries: Entry[];
}