Skip to content

Commit

Permalink
doc: Update README.md (#3408)
Browse files Browse the repository at this point in the history
Co-authored-by: Victoria <victoria.barr@capitalone.com>
  • Loading branch information
StevenACoffman and Victoria authored Dec 5, 2024
1 parent 773fa3c commit ea8b813
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ type User {
}
```

You need to tell gqlgen that it should only fetch friends if the user requested it. There are two ways to do this;
You need to tell gqlgen that it should only fetch friends if the user requested it. There are two ways to do this:

- #### Using Custom Models
### Using Custom Models

Write a custom model that omits the friends field:

Expand All @@ -84,7 +84,7 @@ models:
model: github.com/you/pkg/model.User # go import path to the User struct above
```
- #### Using Explicit Resolvers
### Using Explicit Resolvers
If you want to keep using the generated model, mark the field as requiring a resolver explicitly in `gqlgen.yml` like this:

Expand Down

0 comments on commit ea8b813

Please sign in to comment.