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 and unclezoro committed Sep 21, 2022
1 parent 461835a commit ef24fa3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions graphql/graphql.go
Expand Up @@ -64,6 +64,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

0 comments on commit ef24fa3

Please sign in to comment.