diff --git a/graphql/graphql.go b/graphql/graphql.go index 68ac63b5dc1d..cc3d36235d8a 100644 --- a/graphql/graphql.go +++ b/graphql/graphql.go @@ -64,6 +64,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) }