-
Notifications
You must be signed in to change notification settings - Fork 726
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SchemaConfiguration.cacheKeyInfo(for:object:) never called? #3341
Comments
@jotai-coder where are you defining the custom cache key function? It must be in the |
Do you have a template project I could use as a starting point? |
You just need a simple project with a schema you can share. As long as it demonstrates the problem it doesn't need to be anything complicated. |
I'm closing this issue due to inactivity. If this is still unresolved, feel free to provide more information and we can re-open this, or create a new issue. |
Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo iOS usage and allow us to serve you better. |
Question
(version 1.7.0)
I'm trying to define custom cache keys for some of our custom scalars as described in the docs.
However,
cacheKeyInfo(for:object:)
onSchemaConfiguration
is never called during execution of our queries, so we're getting the default cache key implementation.The only path that I see for calling this is in:
GraphQLExecutor.executeChildSelections(forObjectTypeFields:withRootType:onChildObject:accumulator:)
Ultimately implemented in
CacheKeyComputingExecutionSource
extension.I'm sure I've missed something, but can't sort out what.
Thanks.
The text was updated successfully, but these errors were encountered: