Skip to content
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

Can I read mutation response from cache ?? #1890

Closed
Saranya-Siva opened this issue Aug 3, 2021 · 2 comments
Closed

Can I read mutation response from cache ?? #1890

Saranya-Siva opened this issue Aug 3, 2021 · 2 comments
Labels

Comments

@Saranya-Siva
Copy link

Discussed in https://github.com/apollographql/apollo-ios/discussions/1888

Originally posted by Saranya-Siva August 2, 2021
I am trying to read mutation response from cache using a custom interceptor. But Mutation response is not caching properly when the query variables has a email id parameter in it. When I check db for the records, it's not updating the MUTATION_ROOT key's value.

@designatednerd
Copy link
Contributor

Pretty sure this is essentially a duplicate of #1071 - if it's a valid email, it's got a . in the blah.com, and that's going to make the cache key get split weirdly. Solution is still probably for us to add a way to use an alternative cache key separator.

@calvincestari
Copy link
Member

This should be fixed in the latest main release - 0.51.2. Please let us know if it is still an issue for you - thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants