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