3 ms·
REST & GraphQL are ways to structure the interface of your API. Http is a transport. You can implement REST or graphQL over http. GraphQL is a language not an
by joshribakoff 9y ago
REST & GraphQL are ways to structure the interface of your API. Http is a transport. You can implement REST or graphQL over http.
GraphQL is a language not an implementation. Nowhere does it even say graphQL must use http, let alone POST. You can send a graphQL query with a GET request & cache it just fine.
In addition, graphQL's introspection system makes it super easy to write clients that do complex cache manipulation, like optimistic updates & a variety of cache invalidation / refetching patterns.