Reading and Writing Data to the Cache
Apollo Client provides three methods for reading and writing data to the cache:
readQueryandreadFragmentwriteQueryandwriteFragmentcache.modify(a method ofInMemoryCache)
Please read the “Reading and writing data to the cache” chapter on Apollo Client documentation.