From ea767f3d19ceb984199a202e1f82b110a1f8b380 Mon Sep 17 00:00:00 2001 From: leminhson2398 Date: Wed, 25 Nov 2020 21:37:35 +0700 Subject: [PATCH] fix: replace deprecated method with a correct one --- internal/graph/graph.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/graph/graph.go b/internal/graph/graph.go index 50316ea..ee69301 100644 --- a/internal/graph/graph.go +++ b/internal/graph/graph.go @@ -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)