News for hackers. Stuff that matters.
Re:Ask HN: Were you happy moving your API from REST to GraphQL? by jwoah12 on Thursday July 19, 2018 @10:10AM (#17566405)
We found our sweet spot in terms of enabling the flexibility of front-end devs experimenting and defining their own queries while maintaining cacheability. During development, front-end devs use the Graphiql endpoint to play around with the data and figure out exactly what they want. Once that's settled, we turn it into a persisted query that is stored on the server and keyed by a unique ID that the client apps use in production instead of the raw GraphQL payload. You add a small amount of overhead for the coordination to create the persisted queries, but we're considering even building a self service process in the future.
Re:Ask HN: Were you happy moving your API from REST to GraphQL? by sequoia on Thursday July 19, 2018 @10:18AM (#17566474)
Is it fair to say that your system relies, more or less, upon one server change per client request change/new request type? Doesn't sound like a dealbreaker necessarily, but I thought this was a big part of the problem GraphQL was supposed to solve.