An alternative cache implementation for Apollo Client, currently at version 0.9.12 (stable). It is maintained by Convoy Inc. and optimized for heavy GraphQL payloads by using an immutable normalized graph structure that returns direct references, reducing CPU/memory overhead compared to Apollo's default InMemoryCache. Release cadence is irregular. Key differentiators include constant-time lookups for static queries, but it lacks support for union types and writeData. Requires @apollo/client ^3.10.8.
npm install msand-apollo-cache-hermesNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to set up Apollo Client with Hermes cache, including a custom entity ID function and a basic query.
Avoid using union types or fragments with type conditions, or use Apollo's InMemoryCache instead.
Use client.writeQuery or client.writeFragment instead of writeData.
Check the source for current configuration options; avoid relying on undocumented features.
Ensure your application code can tolerate additional fields in query results.
Remove union types from your schema queries, or switch to InMemoryCache.
Use writeQuery or writeFragment instead of writeData.