Skip to content

Commit ef24fa3

Browse files
s1naunclezoro
authored andcommitted
graphql: fix long literal passed in a variable (#24864)
1 parent 461835a commit ef24fa3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

graphql/graphql.go

+2
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ func (b *Long) UnmarshalGraphQL(input interface{}) error {
6464
*b = Long(input)
6565
case int64:
6666
*b = Long(input)
67+
case float64:
68+
*b = Long(input)
6769
default:
6870
err = fmt.Errorf("unexpected type %T for Long", input)
6971
}

0 commit comments

Comments
 (0)