fix: replace deprecated method with a correct one

This commit is contained in:
leminhson2398 2020-11-25 21:37:35 +07:00 committed by Jordan Knott
parent 7b6624ecc3
commit ea767f3d19

View File

@ -44,7 +44,7 @@ func NewHandler(repo db.Repository) http.Handler {
}
var subjectID uuid.UUID
in := graphql.GetResolverContext(ctx).Args["input"]
in := graphql.GetFieldContext(ctx).Args["input"]
val := reflect.ValueOf(in) // could be any underlying type
if val.Kind() == reflect.Ptr {
val = reflect.Indirect(val)