Skip to content

Commit 24d1f7c

Browse files
authored
docs: mention Int8 to represent i64 (#560)
1 parent 120e664 commit 24d1f7c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ We support the following scalars in our GraphQL API:
254254
| `String` | Scalar for `string` values. Null characters are not supported and are automatically removed. |
255255
| `Boolean` | Scalar for `boolean` values. |
256256
| `Int` | The GraphQL spec defines `Int` to have a size of 32 bytes. |
257+
| `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. |
257258
| `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`. |
258259
| `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. |
259260

0 commit comments

Comments
 (0)