-
Notifications
You must be signed in to change notification settings - Fork 529
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
dataloader/2
function to helpers (#898)
Adds a convenience `dataloader/2` function that I've needed a couple of times. It's useful in cases where the resource can be inferred from the field name but you still want to pass in extra opts such as `args` or `callback` to the dataloader function.
- Loading branch information
1 parent
1b48cfc
commit 3ecaa4a
Showing
1 changed file
with
39 additions
and
1 deletion.
There are no files selected for viewing
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