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

Don't use Viewer #6

Open
johanoskarsson opened this issue Oct 29, 2016 · 0 comments
Open

Don't use Viewer #6

johanoskarsson opened this issue Oct 29, 2016 · 0 comments

Comments

@johanoskarsson
Copy link

First off, thanks for all your work in the golang relay/graphql world, much appreciated.

I'm new to both go and relay/graphql so hopefully I'm not way off on this, but I found the viewer pattern kind of odd. While I was reading up on it I found this issue where Lee Byron suggests: "to not put everything on a Viewer type, which is an antipattern in GraphQL servers, but instead to put all root access on the Query type.".

My question is: how would that look with golang-relay? Would it be possible to update this project to use that pattern?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant