Reading and Writing Data to the Cache

Learn how to efficiently read and write data to the cache with Apollo Client. Check out the "Reading and writing data to the cache" chapter in the Apollo Client documentation.

Apollo Client provides three methods for reading and writing data to the cache:

  • readQuery and readFragment
  • writeQuery and writeFragment
  • cache.modify (a method of InMemoryCache)

Please read the “Reading and writing data to the cache” chapter on Apollo Client documentation.