Skip to content

Commit

Permalink
chore: improve readme
Browse files Browse the repository at this point in the history
  • Loading branch information
owen2345 committed May 31, 2021
1 parent b430435 commit 5cc0583
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ This gem permits your graphql application to define association preloads to impr
- AFTER
```ruby
def users(ids:)
user = include_gql_preloads(User.where(id: id))
users = User.where(id: ids)
users = include_gql_preloads(users)
end
```
Root query applies all defined preloads
Expand Down

0 comments on commit 5cc0583

Please sign in to comment.