diff --git a/graphql/id.go b/graphql/id.go index 69eaf481a31..2e78a5ec4b2 100644 --- a/graphql/id.go +++ b/graphql/id.go @@ -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: