Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
generateCacheKey
to ApolloServerPluginResponseCache
to allow …
…for custom cache keys (#6655) Create a new hook (`generateCacheKey`) on the `ApolloServerPluginResponseCache` constructor options which allows users to customize the cache key used by returning their own `string`. The hook receives two arguments: the `requestContext` and an object (`cacheKeyData`) which contains the following properties: `source` `operationName` `variables` `extra` (computed by `options.extraCacheKeyData`) `sessionId` `sessionMode`
- Loading branch information