-
-
Notifications
You must be signed in to change notification settings - Fork 819
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
Incorporate graphql-resolvers project? #307
Comments
Can I ask what this library is providing that a more generic functional toolkit (like Ramda) isn't? Mainly because I use Ramda (or sometimes lodash/fp) for composing resolvers and adding branching logic quite regularly and it seems to work fine. |
Honestly? It doesn't do anything much different, but I could not find any helper in those library which accomplished exactly what I was looking for. Have you looked into At first I wanted to use Ramda's Left/Right to accomplish what this code does, but truth is most people in JavaScript are not yet used to more profound aspects of functional programming, so they would have a hard time to figure out how to benefit from the lib. Later, I decided to try and use at least some functional helpers such as @AndrewIngram Does this answer clarify it for you? I've been using some functional toolkit my self and well, |
Would be awesome to have |
@lucasconstantino I'd love to add a link to this and also companion packages in the docs - please submit a PR if you are still interested, I think it would help people find that project! We could make a new section on the resolvers page called "companion tools"! |
I think this is good to close since we added it to the docs. We also have a similar approach with schema directives now. |
graphql-resolvers
project is basically a single-method-project which facilitates resolver composability. It is, in fact, only a small tool. May be it should live on a wider project such asgraphql-tools
, may be not.Any thoughts on that?
The text was updated successfully, but these errors were encountered: