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
I'm looking for a way to pass an struct instance (e.g. f *Friend) to datasource resolver (e.g. func (f *Friend) FullName() string) or func FullName(f *Friend) string))
resolver should be able to access to the object instance somehow, one way might be to recreate TypeFieldConfiguration with each request and pass the instance via config, I'm note sure how efficient that'd be though or is there a better way?
I'm trying to create dynamic data source to be able define resolvers similar to samsarahq/thunder:
I need to pass parent value (
f *Friend
) to its resolvers, but I'm not sure how this can be implemented usingTypeFieldConfiguration
and datasources.I really appreciate any hints or examples.
The text was updated successfully, but these errors were encountered: