Skip to content

Commit

Permalink
Merge pull request #1408 from max107/patch-1
Browse files Browse the repository at this point in the history
int64 support graphql/string.go
  • Loading branch information
mtibben authored Sep 6, 2021
2 parents 23577b6 + a9c8fab commit 71507df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions graphql/string.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ func UnmarshalString(v interface{}) (string, error) {
return v, nil
case int:
return strconv.Itoa(v), nil
case int64:
return strconv.FormatInt(v, 10), nil
case float64:
return fmt.Sprintf("%f", v), nil
case bool:
Expand Down

0 comments on commit 71507df

Please sign in to comment.