| Cache is quite easy to use and it could be even done on network level however this is not representing full offline capabilities. Normally offline capabilities are done by prefetching required data when network is available and users can mitigate that by querying dataset on startup. Depending on the platform different cache capabilities are available:
Good summary of offline support:
- https://github.com/apollographql/apollo-client/issues/424
"I think Apollo Client can give you some basic offline functionality out of the box, but it only knows how to run queries it's seen before. Since GraphQL arguments don't have any semantic meaning (there is no built-in sorting, filtering, etc) it would be hard to run totally new queries in a generic way."
I think we can live with that as feature and assume that we have limited cache functionality. This is exactly what AWS is doing as well: https://docs.aws.amazon.com/appsync/latest/devguide/building-a-client-app-react.html#offline-settings |