Skip to content

Commit

Permalink
docs: mention Int8 to represent i64 (#560)
Browse files Browse the repository at this point in the history
  • Loading branch information
saihaj authored Dec 21, 2023
1 parent 120e664 commit 24d1f7c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions website/pages/en/developing/creating-a-subgraph.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ We support the following scalars in our GraphQL API:
| `String` | Scalar for `string` values. Null characters are not supported and are automatically removed. |
| `Boolean` | Scalar for `boolean` values. |
| `Int` | The GraphQL spec defines `Int` to have a size of 32 bytes. |
| `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. |
| `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`. |
| `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. |

Expand Down

0 comments on commit 24d1f7c

Please sign in to comment.