golang-relay-starter-kit icon indicating copy to clipboard operation
golang-relay-starter-kit copied to clipboard

Don't use Viewer

Open johanoskarsson opened this issue 8 years ago • 0 comments

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!

johanoskarsson avatar Oct 29 '16 16:10 johanoskarsson