diff --git a/docs/content/reference/dataloaders.md b/docs/content/reference/dataloaders.md index fd16d282e9e..fba4e56610c 100644 --- a/docs/content/reference/dataloaders.md +++ b/docs/content/reference/dataloaders.md @@ -131,7 +131,7 @@ func NewLoaders(conn *sql.DB) *Loaders { // define the data loader userReader := &UserReader{conn: conn} loaders := &Loaders{ - UserLoader: dataloader.NewBatchedLoader(u.GetUsers), + UserLoader: dataloader.NewBatchedLoader(userReader.GetUsers), } return loaders }