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

This commit is contained in:
Sina Mahmoodi 2022-05-12 21:10:08 +02:00 committed by GitHub
parent e0a1fd5fdc
commit 440c9fcf75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}