Created
January 20, 2020 16:15
-
-
Save fwojciec/7faf317e8dc8a7232939a260d60901b7 to your computer and use it in GitHub Desktop.
gqlserver2: dataloaders14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// group | |
groupByAuthorID := make(map[int64]*pg.Agent, len(authorIDs)) | |
for _, r := range res { | |
groupByAuthorID[r.AuthorID] = &pg.Agent{ | |
ID: r.ID, | |
Name: r.Name, | |
Email: r.Email, | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment