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
DefaultResolveFn works properly for the following maps:
typeMyMapmap[string]any
but when we change the map key:
type MyKey string
type MyMap map[MyKey]any
it returns the following errors:
reflect.Value.MapIndex: value of type string is not assignable to type .*
Example:
Error
2009/11/10 23:00:00 failed to execute graphql operation, errors: [reflect.Value.MapIndex: value of type string is not assignable to type main.TranslationKey reflect.Value.MapIndex: value of type string is not assignable to type main.TranslationKey]
Issue
DefaultResolveFn
works properly for the following maps:but when we change the map key:
it returns the following errors:
Example:
Error
Code
https://go.dev/play/p/giPGGUxKht8
Solution
The following PR solves that problem, but I believe it's been wrongly closed.
#697
Please take a look at the deeper explanation in the comment #697 (comment)
The text was updated successfully, but these errors were encountered: