3 ms·
> The required POSTs cannot be easily (if at all?) cached GraphQL allows queries to be performed with GET: http://example.com/graphql?query=query{user{id}}
by atombender 7y ago
> The required POSTs cannot be easily (if at all?) cached
GraphQL allows queries to be performed with GET:
http://example.com/graphql?query=query{user{id}}
You want to use POST for mutations, but read queries can be run through GET and cached just like REST. There's literally no difference -- it's HTTP, after all.
- lwansbrough 7y agoThere is a difference. When "everybody" has a unique query, there's no cache.
- alexchamberlain 7y agoIn practice, doesn't everyone run the same query in Production? If variables are being used, they're the same degrees of freedom that rest had anyway, right?