Skip to content

Commit 5c79f7d

Browse files
authored
GraphQL "Int" type is 32-bit (not 3- byte) (#612)
Int is 32 bit (not 32 byte) Co-authored-by: Ben Jett <[email protected]>
1 parent 05f572e commit 5c79f7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/pages/en/developing/creating-a-subgraph.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ We support the following scalars in our GraphQL API:
277277
| `Bytes` | Byte array, represented as a hexadecimal string. Commonly used for Ethereum hashes and addresses. |
278278
| `String` | Scalar for `string` values. Null characters are not supported and are automatically removed. |
279279
| `Boolean` | Scalar for `boolean` values. |
280-
| `Int` | The GraphQL spec defines `Int` to have a size of 32 bytes. |
280+
| `Int` | The GraphQL spec defines `Int` to be a signed 32-bit integer. |
281281
| `Int8` | An 8-byte signed integer, also known as a 64-bit signed integer, can store values in the range from -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807. Prefer using this to represent `i64` from ethereum. |
282282
| `BigInt` | Large integers. Used for Ethereum's `uint32`, `int64`, `uint64`, ..., `uint256` types. Note: Everything below `uint32`, such as `int32`, `uint24` or `int8` is represented as `i32`. |
283283
| `BigDecimal` | `BigDecimal` High precision decimals represented as a significand and an exponent. The exponent range is from −6143 to +6144. Rounded to 34 significant digits. |

0 commit comments

Comments
 (0)