Skip to content

Commit

Permalink
int64 support
Browse files Browse the repository at this point in the history
  • Loading branch information
max107 authored Dec 6, 2020
1 parent b484fc2 commit a9c8fab
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 a9c8fab

Please sign in to comment.