graphql

pcj 2019-07-23T15:10:41.001800Z

I have about five user authorization levels (all will be able to use our graphql api to some extent). Is it an okay practice to generate different schemas for each user level?

donaldball 2019-07-23T15:19:34.003200Z

We took the approach of filtering data by authorization in the resolvers but that seems like a reasonable approach for certain use cases.

pcj 2019-07-23T15:40:32.003800Z

Cool. Will let yinz know if I run into any major problems doing it this way

hlship 2019-07-23T18:06:29.004800Z

Its an interesting idea ... and one that is reasonable because the schema is data.

donaldball 2019-07-23T20:10:53.005800Z

We annotate our schema like it’s going out of style and transform it before compiling it. It’s an incredibly effective way to reduce some of the boilerplate and ensure consistency.