You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.
for example, a query which has a variable that is required contains a refetchable fragment, relay permit does not provide the variable for refetch, (it still provide value of the variable in last query), so the refetch definition write the variable as is NOT required.
query mainQuery($var: Boolean!) {
...mainFragment @relay(mask: true)
}
fragment mainFragment on Query @refetchable(queryName: "MainFragmentQuery") {
something @include(if: $var)
}
but that can not pass the validation of backend, such as github.com/vektah/gqlparser/v2, because it think the $var should be required when it see $var is used in @include.
I have no idea how to solve this problem, or where do I make mistake?
thanks!
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
for example, a query which has a variable that is required contains a refetchable fragment, relay permit does not provide the variable for refetch, (it still provide value of the variable in last query), so the refetch definition write the variable as is NOT required.
and generated refetch definition:
but that can not pass the validation of backend, such as github.com/vektah/gqlparser/v2, because it think the $var should be required when it see $var is used in @include.
I have no idea how to solve this problem, or where do I make mistake?
thanks!
The text was updated successfully, but these errors were encountered: