-
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
graphql union type extraction fragment doesn't get mapping field values #11588
Comments
Hi! Have you made sure to specify possibleTypes in your cache configuration? |
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. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Issue Description
When defining union type and getting these fields from fragment, apollo-client doesn't get these values.
Link to Reproduction
krrrr38/react-apollo-error-template#1
Reproduction Steps
See the reproduction PR. In this pr, graphql defines
PetData
union data.When accessing data using fragment
AllPetData
, apollo-client doesn't getdogData
andcatData
.For workaround, we should remove fragment.
@apollo/client
version3.9.4
The text was updated successfully, but these errors were encountered: