| We deployed our GraphQL July 4th 2016. It'll almost be 2 years. Documentation sucked back then (and apollo was non-existent), so a lot of we had to dig by ourselves. I hope this book will cover some topics for others that was real head scratchers for us - DataLoaders - Authentication example - Unions and Interfaces are your friend. Use them early. - Try to define your custom Scalars early (especially DateTime format) - return Connections (edge/node) instead of List cause you probably want to paginate at some point - Folder structure (we redid ours 4 times lol) - Naming convention (we redid ours 3 times lol) - Subscriptions After 2 years of using it and hacking it, we're still impressed. Once you get past the learning curves and have set conventions, writing GraphQL is a lot faster and better. Define your types, and some custom root queries, and done. The neatest thing is that we made a schema validator -- compile all the graphql queries from the frontend and mobile, and validate them against the server schema. It really help when we changed folder structure and naming convention to see if we'd break something on the frontend. I can't vouch for this book yet, but I'll swear my life on GQL. It's been a real game-changer. |
https://pragprog.com/book/wwgraphql/craft-graphql-apis-in-el...
A nice thing about this stack is it supports the GraphQL Subscriptions protocol out of the box without the need to set up a separate pubsub server.