News for hackers. Stuff that matters.
Re:The GraphQL stack: How everything fits together by andrewingram on Thursday November 09, 2017 @05:26AM (#15661297)
Model access control into the schema. Create a BaseUser type and an UnauthorizedAccess type, then a union of the two, refer to the union in nearly all scenarios where you want to create a relationship to a User.

GraphQL gives you access to a relatively powerful (but sadly incomplete) type system, you have a much better time if you take full advantage of it.

Re:The GraphQL stack: How everything fits together by schickling on Thursday November 09, 2017 @05:47AM (#15661380)
Which features are you missing in GraphQL's type system?
Re:The GraphQL stack: How everything fits together by andrewingram on Thursday November 09, 2017 @06:18AM (#15661493)
Unions on scalars, unions on input types, intersection types, and generics. Arrays are already a generic type, but we're unable to create new ones.