Skip to content

Commit

Permalink
graphql: fix long literal passed in a variable (#24864)
Browse files Browse the repository at this point in the history
  • Loading branch information
s1na authored May 12, 2022
1 parent e0a1fd5 commit 440c9fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions graphql/graphql.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

1 comment on commit 440c9fc

@ramsemune123

This comment was marked as spam.

Please sign in to comment.