-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Data of the fields added by Link cannot be retrieved from merge #8384
Comments
@kazekyo The Thanks to your reproduction, I can tell you this line doesn't actually change/replace the query from the perspective of the client, so the client/cache won't acknowledge or process the extra fields, since those fields were not in the original query as provided to the link. All things considered, I would not recommend trying to solve this problem with an Also, since it looks like you're using Relay-style pagination, and |
@benjamn Thanks for the quick reply! I'm a third-party library developer and I'm working on a library to make Apollo Client more useful with Relay Specification. The library contains the improved In some links, I have changed the If we can agree on some kind of design, I will be happy to help you 🙌 |
I posted a request to apollo-feature-requests. I hope we can discuss it there. |
@benjamn I'm still interested in this issue. There doesn't seem to be much discussion on apollo-feature-requests, including my post. Let me know if you have any input. |
Hey @kazekyo 👋 Thanks for your patience! We believe this can now be solved with document transforms released in 3.8.0 which will allow you to transform a query document that will be used by the cache as well. Please try this out and see if it helps here. Thanks! |
Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo Client usage and allow us to serve you better. |
Intended outcome:
For example, I have a query like the following:
A Link I created will add
cursor
andpageInfo
, and the following query will be requested:As a result, I expect to have
pageInfo
andcursor
data inincoming
ofmerge
.Actual outcome:
The response to that request has data for
cursor
andpageInfo
, butincoming
does not have the data forpageInfo
andcursor
.How to reproduce the issue:
https://github.com/kazekyo/apollo-link-test
Versions
The text was updated successfully, but these errors were encountered: