Skip to content

Commit

Permalink
Update id function
Browse files Browse the repository at this point in the history
  • Loading branch information
cfilby committed Oct 17, 2019
1 parent 3719177 commit 13c3d92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphql/id.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func UnmarshalID(v interface{}) (string, error) {
case int:
return strconv.Itoa(v), nil
case int64:
return strconv.Itoa(int(v)), nil
return strconv.FormatInt(v, 10), nil
case float64:
return fmt.Sprintf("%f", v), nil
case bool:
Expand Down

0 comments on commit 13c3d92

Please sign in to comment.