You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Team 👋
Exciting to see the changes pertaining to merging of Relay Style Pagination Responses in the Incubating Normalized Cache.
In order to use the feature(s) that enabling merging of the Relay Style Pagination Response in Incubating Normalized Cache requires setting a few parameter(s), while defining custom directives @fypePolicy or @fieldPolicy.
However, is there any plan to enable this feature with the programmatic cache keys such as CacheKeyGenerator and CacheKeyResolver?
Describe the solution you'd like
I'll leave it to the maintainers to decide.
The text was updated successfully, but these errors were encountered:
Hi! You're right this is declarative only currently, and it would probably makes sense to have a programmatic API as well. I'll keep this ticket open to track it.
To better understand the need, may I ask why you'd prefer it over the declarative way?
Hi @BoD
Thanks for the quick response.
Yes, so we have been utilising CacheKeyGenerator and CacheKeyResolvers to programmatically generate CacheKeys.
We preferred not to maintain an additional artifact in extra.graphql specifically because we didn't want multiple teams to step on top of each other's changes.
It is actually now possible to use the pagination mechanism with a programmatic configuration only, since #5772. An example is available in ConnectionProgrammaticPaginationTest.
Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo Kotlin usage and allow us to serve you better.
Use case
Hi Team 👋
Exciting to see the changes pertaining to merging of Relay Style Pagination Responses in the Incubating Normalized Cache.
In order to use the feature(s) that enabling merging of the Relay Style Pagination Response in Incubating Normalized Cache requires setting a few parameter(s), while defining custom directives
@fypePolicy
or@fieldPolicy
.However, is there any plan to enable this feature with the programmatic cache keys such as
CacheKeyGenerator
andCacheKeyResolver
?Describe the solution you'd like
I'll leave it to the maintainers to decide.
The text was updated successfully, but these errors were encountered: