-
Notifications
You must be signed in to change notification settings - Fork 739
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
iOS Cache Serialisation to use custom scalar types #329
Comments
Here maybe? #262 |
thanks Liam, thats not quite the issue. I have custom scalars working when parsing network response as is described in your linked issue. The issue is that Apollo doesn't use custom scalars when serialising persisted data from SqlNormalizedCache |
wonder if theres an answer for this ongoing issue yet ? |
Temporally,
|
Hello @qalvapps and @liamjdouglas I have same issue in version 0.10.1. When I am using custom scalar types at that time Watcher is not calling while update the Cache. Do you have any solution? Thanks |
There's definitely some gooberyness going on with this, I'll have to do some excavating to figure out what's going on. |
I have been having the same issue as @qalvapps. His statement: A couple things to note:
|
OK thank you very much for the detailed info - I'll see what I can do about this when I get back from moving. |
@designatednerd I think we found the underlying issue. Some of our Queries variables contain
There still seems to be an issue in |
Oof, yeah, that would definitely break the hell out of trying to parse key paths. Thanks for the info! |
This issue should be fixed by #1144, which shipped with |
We use custom scalar type's in our schema which Apollo uses successfully to parse the network response, but it seems when apollo persists this data using the SqlNormalizedCache, the data is stored 'as is' and doesn't use the custom scalar types for serialisation. Apollo reading from cache then ultimately fails.
Any way to get serialisation to use custom scalar types ?
This is similar to issue with Android, which had issue raised last week which subsequently received a PR :
issue: apollographql/apollo-kotlin#1001
PR: apollographql/apollo-kotlin#1010
The text was updated successfully, but these errors were encountered: