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
The graphql.Client interface is scarily complex, for something we have to support forever. We may want to try to make it a bit more constrained, with specific hooks for specific things, so that callers can't do weird things. But we'll need to see how people actually use it.
At Khan, we currently:
munge the URL to add the opname
munge the error (if any), wrapping, and potentially adding some of the variables
Other potential use cases:
caching (so Caching #29 can be done in third-party code)
We could even replace retval interface{} with returning the json.RawMessage, or with passing you unmarshal(string) interface{} and having you return the interface{}, although both are a bit ugly and I'm not sure either is quite flexible enough.
The
graphql.Client
interface is scarily complex, for something we have to support forever. We may want to try to make it a bit more constrained, with specific hooks for specific things, so that callers can't do weird things. But we'll need to see how people actually use it.At Khan, we currently:
Other potential use cases:
The text was updated successfully, but these errors were encountered: