Skip to content

Commit

Permalink
fix: import
Browse files Browse the repository at this point in the history
  • Loading branch information
zenyui committed Jul 19, 2023
1 parent b90b3f6 commit 68123b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/content/reference/dataloaders.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ Add the dataloader middleware to your server...
var srv http.Handler = handler.NewDefaultServer(generated.NewExecutableSchema(...))
// wrap the query handler with middleware to inject dataloader in requests.
// pass in your dataloader depenendicies, in this case the db connection.
srv = dataloader.Middleware(db, srv)
srv = loaders.Middleware(db, srv)
// register the wrapped handler
http.Handle("/query", srv)
```
Expand Down

0 comments on commit 68123b5

Please sign in to comment.