Unverified Commit 440c9fcf authored by Sina Mahmoodi's avatar Sina Mahmoodi Committed by GitHub

graphql: fix long literal passed in a variable (#24864)

parent e0a1fd5f
...@@ -65,6 +65,8 @@ func (b *Long) UnmarshalGraphQL(input interface{}) error { ...@@ -65,6 +65,8 @@ func (b *Long) UnmarshalGraphQL(input interface{}) error {
*b = Long(input) *b = Long(input)
case int64: case int64:
*b = Long(input) *b = Long(input)
case float64:
*b = Long(input)
default: default:
err = fmt.Errorf("unexpected type %T for Long", input) err = fmt.Errorf("unexpected type %T for Long", input)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment