absinthe-graphql / absinthe_ecto

DEPRECATED: Use dataloader
MIT License
130 stars 36 forks source link

README suggestion #14

Closed xtagon closed 4 years ago

xtagon commented 7 years ago

Hi,

The README says:

The assoc macro just builds a resolution function which calls ecto_batch/4.

See the ecto_batch/4 function for how to do this from within a regular resolution function.

As a beginner I have a hard time picturing the equivilent ecto_batch code. I know there is documentation on how to use ecto_batch, but I think what would really help a newcomer to this repo is a quick example of how you would implement the specific assoc example in the README if you had to do it with ecto_batch only.

What do you think?