From c77d77833680ca1f4daf3b213f0399aef76b5772 Mon Sep 17 00:00:00 2001 From: Mariano Pardo Date: Wed, 26 Aug 2020 03:44:24 -0300 Subject: [PATCH] docs(resolvers): Add class type to custom CRUDResolver --- documentation/docs/graphql/resolvers.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/docs/graphql/resolvers.mdx b/documentation/docs/graphql/resolvers.mdx index 55a2bf573..a5cb2f52e 100644 --- a/documentation/docs/graphql/resolvers.mdx +++ b/documentation/docs/graphql/resolvers.mdx @@ -83,7 +83,7 @@ import { Resolver, Query, Args } from '@nestjs/graphql'; import { TodoItemDTO } from './dto/todo-item.dto'; import { TodoItemEntity } from './todo-item.entity'; -@Resolver() +@Resolver(() => TodoItemDTO) export class TodoItemResolver extends CRUDResolver(TodoItemDTO) { constructor( @InjectQueryService(TodoItemEntity) readonly service: QueryService