Share fragment between query and mutation without masking #9325
Unanswered
KammererTob
asked this question in
Q&A
Replies: 2 comments 1 reply
-
you just need disable fragment masking.
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Any solutions found? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
To avoid duplication i would like to use the same fragment for a query and a mutation.
Example:
The issue with this approach is that the fragment is masked in the component. Meaning that i cannot access
result.value?.settings.name
, i can only access__typename
. I assume that is because i am using a fragment here. What is the best approach here?Beta Was this translation helpful? Give feedback.
All reactions