{"library":"apollo-cache-router","type":"library","category":null,"description":"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.","language":"javascript","status":"maintenance","version":"1.1.6","tags":["javascript","apollo","graphql","log","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install apollo-cache-router","imports":["import ApolloCacheRouter from 'apollo-cache-router'","import ApolloCacheRouter from 'apollo-cache-router'","import type { CacheResolverFn } from 'apollo-cache-router'"]},{"cmd":"yarn add apollo-cache-router","imports":[]},{"cmd":"pnpm add apollo-cache-router","imports":[]}],"homepage":"https://github.com/sysgears/apollo-cache-router","github":"https://github.com/sysgears/apollo-cache-router","docs":null,"changelog":null,"pypi":null,"npm":"apollo-cache-router","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}