doc: fix file name for required change (#2961)

This commit is contained in:
Dan Kortschak
2022-09-27 16:28:45 +09:30
committed by GitHub
parent e93e96ed1b
commit bd80e069b9

View File

@@ -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().