Question · JavaScript and React course · Module 10: React Ecosystem and Future

Apollo Client - Cache

What role does InMemoryCache play in Apollo Client?

Answer options

  • Compresses server responses to a smaller size
  • Normalizes and caches data from GraphQL responses in memory, eliminating the need to repeat identical queries
  • Caches only images and static files, not GraphQL data
  • Stores GraphQL queries permanently in the browser's localStorage

You can check the correct answer by solving this task in the CodeWorlds game.