Skip to content

Commit

Permalink
New translations ql-schema.mdx (Chinese Simplified)
Browse files Browse the repository at this point in the history
  • Loading branch information
benface committed Dec 16, 2024
1 parent 0b79697 commit 659331b
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions website/pages/zh/developing/creating-a-subgraph/ql-schema.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,16 @@ For some entity types the `id` for `Bytes!` is constructed from the id's of two

The following scalars are supported in the GraphQL API:

| 类型 | 描述 |
| --- | --- |
| `Bytes` | 字节数组,表示为十六进制字符串。 通常用于以太坊hash和地址。 |
| `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 be a signed 32-bit integer. |
| `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. |
| `Timestamp` | It is an `i64` value in microseconds. Commonly used for `timestamp` fields for timeseries and aggregations. |
| 类型 | 描述 |
| ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Bytes` | 字节数组,表示为十六进制字符串。 通常用于以太坊hash和地址。 |
| `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 be a signed 32-bit integer. |
| `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. |
| `Timestamp` | It is an `i64` value in microseconds. Commonly used for `timestamp` fields for timeseries and aggregations. |

### 枚举类型

Expand Down Expand Up @@ -283,30 +283,30 @@ query {

支持的语言词典:

| Code | 词典 |
| ------ | --------- |
| simple | General |
| da | Danish |
| nl | Dutch |
| en | English |
| fi | Finnish |
| fr | French |
| de | German |
| hu | Hungarian |
| it | Italian |
| no | Norwegian |
| pt | 葡萄牙语 |
| ro | Romanian |
| ru | Russian |
| es | Spanish |
| sv | Swedish |
| tr | Turkish |
| Code | 词典 |
| ------ | ---------- |
| simple | General |
| da | Danish |
| nl | Dutch |
| en | English |
| fi | Finnish |
| fr | French |
| de | German |
| hu | Hungarian |
| it | Italian |
| no | Norwegian |
| pt | 葡萄牙语 |
| ro | Romanian |
| ru | Russian |
| es | Spanish |
| sv | Swedish |
| tr | Turkish |

### 排序算法

支持的排序结果算法:

| Algorithm | Description |
| ------------- | --------------------------------------------------------------- |
| rank | 使用全文查询的匹配质量 (0-1) 对结果进行排序。 |
| proximityRank | Similar to rank but also includes the proximity of the matches. |
| Algorithm | Description |
| ------------- | ----------------------------------------------------------------------- |
| rank | 使用全文查询的匹配质量 (0-1) 对结果进行排序。 |
| proximityRank | Similar to rank but also includes the proximity of the matches. |

0 comments on commit 659331b

Please sign in to comment.