Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to change the context in subfield through resolver #16

Open
hendrikniemann opened this issue Jul 27, 2020 · 0 comments
Open

Allow to change the context in subfield through resolver #16

hendrikniemann opened this issue Jul 27, 2020 · 0 comments
Labels
discussion Something that needs further input enhancement New feature or request

Comments

@hendrikniemann
Copy link
Owner

In theory we could allow to change the context of child fields. This might be possible by adjusting withResolver so that the resolver could switch the context. I think this is wrong but maybe it conveys the idea:

- withResolver :: forall m a b argsd argsp.
+ withResolver :: forall m n a b argsd argsp.
    MonadError Error m =>
-   Field n a argsd argsp ->
+   Field n a argsd argsp ->
    (Record argsp -> b -> m a) ->
    Field m b argsd argsp

I can't really think this through right now, but maybe some ideas come up...

@hendrikniemann hendrikniemann added discussion Something that needs further input enhancement New feature or request labels Jul 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Something that needs further input enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant