Skip to content

Commit

Permalink
docs(resolvers): Add class type to custom CRUDResolver
Browse files Browse the repository at this point in the history
  • Loading branch information
marian2js authored and doug-martin committed Aug 26, 2020
1 parent c8d1f66 commit c77d778
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion documentation/docs/graphql/resolvers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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<TodoItemEntity>
Expand Down

0 comments on commit c77d778

Please sign in to comment.