Apollo Cache Router
JSON →Apollo Cache Router is a utility that routes GraphQL operations to different caches based on directives or query names. Version 1.1.6, last updated in 2019, it extends Apollo Client's cache layer by allowing multiple InMemoryCache instances and custom routing logic. It supports TypeScript, uses ESM imports, and is useful for separating client-only and network GraphQL data. Differentiates from standard Apollo Cache by enabling conditional cache selection via a routing function and cache overrides for lifecycle methods. Requires apollo-cache and graphql as peer dependencies.
Resources
packageapollo-cache-router ↗
API endpoints
full doc /v1/registry/apollo-cache-router