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
Uh oh!
There was an error while loading. Please reload this page.
-
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.Argsthat 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.Argstointerface{}so that clients can assign whatever value they want.Please let me know your opinion.
Beta Was this translation helpful? Give feedback.
All reactions