Skip to content

Commit

Permalink
doc: fix file name for required change (#2961)
Browse files Browse the repository at this point in the history
  • Loading branch information
kortschak committed Sep 27, 2022
1 parent e93e96e commit bd80e06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/md/tutorial-todo-gql-field-collection.md
Expand Up @@ -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().
Expand Down

0 comments on commit bd80e06

Please sign in to comment.