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.
Hi,
The README says:
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?