Skip to content

Commit

Permalink
Create package declaration to run dataloaden
Browse files Browse the repository at this point in the history
  • Loading branch information
mtsmfm authored Oct 12, 2020
1 parent 3a31a75 commit 82ca6e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/content/reference/dataloaders.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ doesnt have generics. Instead we generate the code manually for our instance.
go get github.com/vektah/dataloaden
mkdir dataloader
cd dataloader
echo 'package dataloader' > gen.go
go run github.com/vektah/dataloaden UserLoader int *gqlgen-tutorials/dataloader/graph/model.User
```

Expand Down

0 comments on commit 82ca6e2

Please sign in to comment.