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 have a Job model, it has set of Task IDs stored in []int field.
I want to calculate some task statistics in converter extension function using preloaded set of Tasks, but I have access only ti Job instance. Can I somehow passthrough preloaded tasks to use them while converting the job?
E.g., we can get them from the context, or another passed object or map.
I'd say this is a duplicate of #68 and the solution described in here is a little less type safe because of the casting required when using context.Context.
I have a Job model, it has set of Task IDs stored in []int field.
I want to calculate some task statistics in converter extension function using preloaded set of Tasks, but I have access only ti Job instance. Can I somehow passthrough preloaded tasks to use them while converting the job?
E.g., we can get them from the context, or another passed object or map.
The text was updated successfully, but these errors were encountered: