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 Apr 15, 2020. It is now read-only.
The intent here is to have an SDL-only way to deal with "internal" values of enum values without having to utilize the resolver map.
The issues is that GraphQLEnumType utilizes several private properties that are derived from the initial set of values. I think the entire GraphQLEnumType would need to be recreated with an updated config whenever the visitor is called or after all directives are ran, but off-hand I'm not sure how feasible either approach is.
The text was updated successfully, but these errors were encountered:
Excellent! I'm elated to see all this work finally get merged upstream. I'll close this out and open a PR upstream with a failing test when I get a moment.
Just hit this issue while trying to implement a simple directive that would let you change the value of an enum value:
The intent here is to have an SDL-only way to deal with "internal" values of enum values without having to utilize the resolver map.
The issues is that
GraphQLEnumType
utilizes several private properties that are derived from the initial set of values. I think the entireGraphQLEnumType
would need to be recreated with an updated config whenever the visitor is called or after all directives are ran, but off-hand I'm not sure how feasible either approach is.The text was updated successfully, but these errors were encountered: