You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the docs, the callback function of Absinthe.Resolution.Helpers.dataloader/2 options
Can be used to e.g. compute fields on the return value of the loader.
This is a very useful way of transforming the data.
I think it this function would benefit from being passed the context, in case the data transformation needed to e.g. take session state into consideration.
I can see value in that for some use cases. Instead of the context I think it makes more sense to pass through the resolution struct just like normal resolver functions.
Hello everyone!
According to the docs, the callback function of Absinthe.Resolution.Helpers.dataloader/2 options
This is a very useful way of transforming the data.
I think it this function would benefit from being passed the context, in case the data transformation needed to e.g. take session state into consideration.
Like this:
What do you think? Would a PR be welcome?
The text was updated successfully, but these errors were encountered: