Skip to content

Commit 440c9fc

Browse files
authored
graphql: fix long literal passed in a variable (#24864)
1 parent e0a1fd5 commit 440c9fc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

graphql/graphql.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ func (b *Long) UnmarshalGraphQL(input interface{}) error {
6565
*b = Long(input)
6666
case int64:
6767
*b = Long(input)
68+
case float64:
69+
*b = Long(input)
6870
default:
6971
err = fmt.Errorf("unexpected type %T for Long", input)
7072
}

0 commit comments

Comments
 (0)