From f04619192cbd27110680cec1999f9daa9015b6f4 Mon Sep 17 00:00:00 2001 From: Dan Kortschak Date: Mon, 26 Sep 2022 20:20:22 +0930 Subject: [PATCH] docs: fix file name for required change --- doc/md/tutorial-todo-gql-field-collection.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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().