3 ms·
has anyone used JSON API? How does it compare to graphql? Did you find JSON API was better until you hit a certain size?
by Justsignedup 8y ago
has anyone used JSON API? How does it compare to graphql? Did you find JSON API was better until you hit a certain size?
- Vinnl 8y agoFor others as confused as I was: "JSON API" is not just "an API that returns JSON". Apparently it's a spec: http://jsonapi.org/ http://jsonapi.org/
- wruza 8y agoFinally a graph QL that can actually return graphs. Otoh, I don’t get why it is breaking news at all. Figuring out that in some cases you better interchange graphs and implementing a simple json-query-walker is a task for a day or two. You don’t need to go through The Era of REST or The Age of RPC to do that, neither is it a stellar innovation. Where are all the hackers gone?
- deleted 8y ago[deleted]
- headcanon 8y agoWe maintain an Ember app that uses JSON API, as well as a graphQL schema that both touch the same data. JSON API is well suited to Ember, since it manages data relationships client-side with its heavy data layer. GraphQL makes the backend a bit more complex (but not overly so IMO), but the tradeoff is that it abstracts the backend better than JSON API and allows new clients to be spun up more quickly since the data aspect is already taken care of, and the clients only need to be a view layer.
- hiccuphippo 8y agoI think the problem with it is it solves the transport but you still have to deal with the shape of the data.
- boromisp 8y agoWe are using it heavily, and with a few extensions (like a batch modification endpoint) it scales pretty well. I'm not sure what measure of size are you referring to.