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

pull/24867/head
Sina Mahmoodi 3 years ago committed by GitHub
parent e0a1fd5fdc
commit 440c9fcf75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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)
}

Loading…
Cancel
Save