Created
January 20, 2020 16:23
-
-
Save fwojciec/084dbc7c70e98f961bfd0311ba030179 to your computer and use it in GitHub Desktop.
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
func (r *agentResolver) Authors(ctx context.Context, obj *pg.Agent) ([]pg.Author, error) { | |
return r.DataLoaders.Retrieve(ctx).AuthorsByAgentID.Load(obj.ID) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment