graphql: fix long literal passed in a variable (#24864)
This commit is contained in:
parent
e0a1fd5fdc
commit
440c9fcf75
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user