Replies: 1 comment
-
I realized that |
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
-
I'm looking for a way to pass arguments down the resolver chain. I've seen #813 and #202 but neither is a good solution IMO.
I noticed there is
FieldContext.Args
that looks like what I want, but the type ismap[string]interface{}
. In case where I want to pass only one value this forces me to allocate a map, or use weird workarounds withsync.Pool
.I suggest to change
FieldContext.Args
tointerface{}
so that clients can assign whatever value they want.Please let me know your opinion.
Beta Was this translation helpful? Give feedback.
All reactions