Combining Type-GraphQL with Typegoose using Multiple Decorators
i have seen many users using typegoose & typegraphql successfully together
@ObjectType()export class Book extends InStock { @prop() @Field() public title: string; @prop() @Field() public author: string; @prop() @Field({ nullable: true }) public publicationDate?: Date; @prop() @Field() public pages: number;}export const Book = getModelForClass(BookClass);