diff --git a/doc/md/tutorial-todo-gql-field-collection.md b/doc/md/tutorial-todo-gql-field-collection.md index 81ff688236..3821473eec 100755 --- a/doc/md/tutorial-todo-gql-field-collection.md +++ b/doc/md/tutorial-todo-gql-field-collection.md @@ -73,7 +73,7 @@ and for the node(s) API. For the purpose of the example, we **disable the automatic field collection**, change the `ent.Client` to run in debug mode in the `Todos` resolver, and restart our GraphQL server: -```diff title="todo.resolvers.go" +```diff title="ent.resolvers.go" func (r *queryResolver) Todos(ctx context.Context, after *ent.Cursor, first *int, before *ent.Cursor, last *int, orderBy *ent.TodoOrder) (*ent.TodoConnection, error) { - return r.client.Todo.Query(). + return r.client.Debug().Todo.Query().