From db2660c8bf2b68f08d5fe18ec2ea0a3bf893a901 Mon Sep 17 00:00:00 2001 From: Sina Mahmoodi <1591639+s1na@users.noreply.github.com> Date: Thu, 12 May 2022 21:10:08 +0200 Subject: [PATCH] graphql: fix long literal passed in a variable (#24864) --- graphql/graphql.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/graphql/graphql.go b/graphql/graphql.go index dc25a41f21c9..4c6e5545b50f 100644 --- a/graphql/graphql.go +++ b/graphql/graphql.go @@ -65,6 +65,8 @@ func (b *Long) UnmarshalGraphQL(input interface{}) error { *b = Long(input) case int64: *b = Long(input) + case float64: + *b = Long(input) default: err = fmt.Errorf("unexpected type %T for Long", input) }