-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Showing
3 changed files
with
30 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters