File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 6
6
# As per the GraphQL Spec, Integers are only treated as valid when a valid
7
7
# 32-bit signed integer, providing the broadest support across platforms.
8
8
#
9
- # n.b. JavaScript's integers are safe between -(2^53 - 1) and 2^53 - 1 because
9
+ # n.b. JavaScript's integers are safe between -(2^31 - 1) and 2^31 - 1 because
10
10
# they are internally represented as IEEE 754 doubles.
11
11
MAX_INT = 2147483647
12
12
MIN_INT = - 2147483648
@@ -37,7 +37,7 @@ def parse_int_literal(ast):
37
37
GraphQLInt = GraphQLScalarType (
38
38
name = 'Int' ,
39
39
description = 'The `Int` scalar type represents non-fractional signed whole numeric '
40
- 'values. Int can represent values between -(2^53 - 1) and 2^53 - 1 since '
40
+ 'values. Int can represent values between -(2^31 - 1) and 2^31 - 1 since '
41
41
'represented in JSON as double-precision floating point numbers specified'
42
42
'by [IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point).' ,
43
43
serialize = coerce_int ,
You can’t perform that action at this time.
0 commit comments