Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Crowdin updates #45

Merged
merged 241 commits into from
Jan 28, 2022
Merged
Changes from 1 commit
Commits
Show all changes
241 commits
Select commit Hold shift + click to select a range
ec3e2c9
New translations introduction.mdx (Spanish)
benface Jan 28, 2022
26e6d71
New translations deprecating-a-subgraph.mdx (Arabic)
benface Jan 28, 2022
1dd4ae2
New translations create-subgraph-hosted.mdx (Chinese Simplified)
benface Jan 28, 2022
170a0a4
New translations define-subgraph-hosted.mdx (Spanish)
benface Jan 28, 2022
dea722e
New translations define-subgraph-hosted.mdx (Arabic)
benface Jan 28, 2022
8577227
New translations define-subgraph-hosted.mdx (Chinese Simplified)
benface Jan 28, 2022
0ef1671
New translations deprecating-a-subgraph.mdx (Spanish)
benface Jan 28, 2022
ebf87cc
New translations developer-faq.mdx (Spanish)
benface Jan 28, 2022
f707b62
New translations developer-faq.mdx (Arabic)
benface Jan 28, 2022
15535f8
New translations distributed-systems.mdx (Spanish)
benface Jan 28, 2022
93b21e9
New translations create-subgraph-hosted.mdx (Arabic)
benface Jan 28, 2022
a65040f
New translations introduction.mdx (Arabic)
benface Jan 28, 2022
cab9d0e
New translations assemblyscript-api.mdx (Spanish)
benface Jan 28, 2022
ccf531f
New translations introduction.mdx (Japanese)
benface Jan 28, 2022
5b124c8
New translations introduction.mdx (Korean)
benface Jan 28, 2022
25bdd2f
New translations introduction.mdx (Chinese Simplified)
benface Jan 28, 2022
989964d
New translations network.mdx (Spanish)
benface Jan 28, 2022
6b6da91
New translations network.mdx (Arabic)
benface Jan 28, 2022
ec651c7
New translations network.mdx (Japanese)
benface Jan 28, 2022
36c218c
New translations network.mdx (Korean)
benface Jan 28, 2022
282c9e2
New translations network.mdx (Chinese Simplified)
benface Jan 28, 2022
85688d0
New translations assemblyscript-api.mdx (Arabic)
benface Jan 28, 2022
d47442e
New translations create-subgraph-hosted.mdx (Spanish)
benface Jan 28, 2022
197165d
New translations assemblyscript-api.mdx (Japanese)
benface Jan 28, 2022
5d5db48
New translations assemblyscript-api.mdx (Korean)
benface Jan 28, 2022
21fea9b
New translations assemblyscript-api.mdx (Chinese Simplified)
benface Jan 28, 2022
d3ebcba
New translations assemblyscript-api.mdx (Vietnamese)
benface Jan 28, 2022
d09ce0d
New translations assemblyscript-migration-guide.mdx (Spanish)
benface Jan 28, 2022
78de9ff
New translations assemblyscript-migration-guide.mdx (Arabic)
benface Jan 28, 2022
63122a7
New translations assemblyscript-migration-guide.mdx (Japanese)
benface Jan 28, 2022
5e5ce94
New translations distributed-systems.mdx (Arabic)
benface Jan 28, 2022
52e7f75
New translations querying-from-your-app.mdx (Spanish)
benface Jan 28, 2022
fe94fb9
New translations querying-from-your-app.mdx (Arabic)
benface Jan 28, 2022
8134f9c
New translations querying-from-your-app.mdx (Japanese)
benface Jan 28, 2022
d3dfab9
New translations querying-from-your-app.mdx (Chinese Simplified)
benface Jan 28, 2022
24da222
New translations quick-start.mdx (Spanish)
benface Jan 28, 2022
31b8bab
New translations quick-start.mdx (Arabic)
benface Jan 28, 2022
a219b74
New translations quick-start.mdx (Japanese)
benface Jan 28, 2022
f1f39d5
New translations quick-start.mdx (Chinese Simplified)
benface Jan 28, 2022
3285b49
New translations deploy-subgraph-hosted.mdx (Spanish)
benface Jan 28, 2022
4603efc
New translations deploy-subgraph-hosted.mdx (Chinese Simplified)
benface Jan 28, 2022
03f80a1
New translations migrating-subgraph.mdx (Spanish)
benface Jan 28, 2022
160020f
New translations migrating-subgraph.mdx (Arabic)
benface Jan 28, 2022
6408863
New translations migrating-subgraph.mdx (Japanese)
benface Jan 28, 2022
1f8e6c0
New translations graphql-api.mdx (Spanish)
benface Jan 28, 2022
a0c0e82
New translations graphql-api.mdx (Arabic)
benface Jan 28, 2022
45e1889
New translations matchstick.mdx (Spanish)
benface Jan 28, 2022
6238d9d
New translations query-the-graph.mdx (Japanese)
benface Jan 28, 2022
35cd593
New translations publish-subgraph.mdx (Spanish)
benface Jan 28, 2022
ee4bcea
New translations publish-subgraph.mdx (Arabic)
benface Jan 28, 2022
6247598
New translations publish-subgraph.mdx (Japanese)
benface Jan 28, 2022
065243a
New translations query-the-graph.mdx (Spanish)
benface Jan 28, 2022
3f03bb7
New translations query-the-graph.mdx (Arabic)
benface Jan 28, 2022
d078359
New translations migrating-subgraph.mdx (Korean)
benface Jan 28, 2022
5878b14
New translations migrating-subgraph.mdx (Chinese Simplified)
benface Jan 28, 2022
e2dee83
New translations studio-faq.mdx (Spanish)
benface Jan 28, 2022
6a4c619
New translations studio-faq.mdx (Arabic)
benface Jan 28, 2022
ab408f4
New translations studio-faq.mdx (Chinese Simplified)
benface Jan 28, 2022
48d3e23
New translations subgraph-studio.mdx (Spanish)
benface Jan 28, 2022
96ab0f0
New translations multisig.mdx (Spanish)
benface Jan 28, 2022
31f9002
New translations subgraph-studio.mdx (Arabic)
benface Jan 28, 2022
002878a
New translations subgraph-studio.mdx (Japanese)
benface Jan 28, 2022
7e98665
New translations subgraph-studio.mdx (Korean)
benface Jan 28, 2022
05e195f
New translations near.mdx (Spanish)
benface Jan 28, 2022
761b1db
New translations near.mdx (Arabic)
benface Jan 28, 2022
e7f5ab5
New translations near.mdx (Japanese)
benface Jan 28, 2022
3ca823d
New translations near.mdx (Chinese Simplified)
benface Jan 28, 2022
9984764
New translations multisig.mdx (Arabic)
benface Jan 28, 2022
20ad069
New translations what-is-hosted-service.mdx (Chinese Simplified)
benface Jan 28, 2022
671100b
New translations query-hosted-service.mdx (Spanish)
benface Jan 28, 2022
cbd90c2
New translations query-hosted-service.mdx (Arabic)
benface Jan 28, 2022
19c0e4c
New translations query-hosted-service.mdx (Japanese)
benface Jan 28, 2022
e76a7ac
New translations query-hosted-service.mdx (Chinese Simplified)
benface Jan 28, 2022
3889653
New translations what-is-hosted-service.mdx (Spanish)
benface Jan 28, 2022
0bdcabd
New translations what-is-hosted-service.mdx (Arabic)
benface Jan 28, 2022
c10296e
New translations deploy-subgraph-studio.mdx (Chinese Simplified)
benface Jan 28, 2022
7821957
New translations billing.mdx (Spanish)
benface Jan 28, 2022
4a287ec
New translations billing.mdx (Arabic)
benface Jan 28, 2022
407c6f8
New translations billing.mdx (Japanese)
benface Jan 28, 2022
ec99bb8
New translations billing.mdx (Korean)
benface Jan 28, 2022
29f959b
New translations billing.mdx (Chinese Simplified)
benface Jan 28, 2022
d5735f7
New translations deploy-subgraph-studio.mdx (Spanish)
benface Jan 28, 2022
6bf670d
New translations deploy-subgraph-studio.mdx (Arabic)
benface Jan 28, 2022
7ccd5ac
New translations deploy-subgraph-studio.mdx (Japanese)
benface Jan 28, 2022
e27d451
New translations curating.mdx (Spanish)
benface Jan 28, 2022
4a81b7c
New translations global.json (Korean)
benface Jan 28, 2022
9ef6a50
New translations indexing.mdx (Korean)
benface Jan 28, 2022
a4e09b7
New translations indexing.mdx (Chinese Simplified)
benface Jan 28, 2022
2badd32
New translations indexing.mdx (Vietnamese)
benface Jan 28, 2022
05963d3
New translations global.json (Spanish)
benface Jan 28, 2022
108420b
New translations global.json (Arabic)
benface Jan 28, 2022
ceb2038
New translations global.json (Japanese)
benface Jan 28, 2022
a09d6b4
New translations global.json (Chinese Simplified)
benface Jan 28, 2022
c6c747b
New translations indexing.mdx (Arabic)
benface Jan 28, 2022
5c3fc98
New translations global.json (Vietnamese)
benface Jan 28, 2022
e0aea28
New translations index.json (Spanish)
benface Jan 28, 2022
dc722bd
New translations index.json (Arabic)
benface Jan 28, 2022
3fcd76f
New translations index.json (Japanese)
benface Jan 28, 2022
6536724
New translations index.json (Korean)
benface Jan 28, 2022
61ccf03
New translations index.json (Chinese Simplified)
benface Jan 28, 2022
26281bc
New translations indexing.mdx (Japanese)
benface Jan 28, 2022
cf5d9e0
New translations indexing.mdx (Spanish)
benface Jan 28, 2022
cd55414
New translations curating.mdx (Arabic)
benface Jan 28, 2022
b82e8a8
New translations delegating.mdx (Japanese)
benface Jan 28, 2022
7ce8353
New translations curating.mdx (Japanese)
benface Jan 28, 2022
67a7899
New translations curating.mdx (Korean)
benface Jan 28, 2022
dbc8e35
New translations curating.mdx (Chinese Simplified)
benface Jan 28, 2022
73bb4fa
New translations curating.mdx (Vietnamese)
benface Jan 28, 2022
b0fbbde
New translations delegating.mdx (Spanish)
benface Jan 28, 2022
7883b0a
New translations delegating.mdx (Arabic)
benface Jan 28, 2022
19bfcf5
New translations delegating.mdx (Korean)
benface Jan 28, 2022
d2b8a55
New translations explorer.mdx (Vietnamese)
benface Jan 28, 2022
c4f1bbc
New translations delegating.mdx (Chinese Simplified)
benface Jan 28, 2022
5655721
New translations delegating.mdx (Vietnamese)
benface Jan 28, 2022
4724abd
New translations explorer.mdx (Spanish)
benface Jan 28, 2022
b0406d1
New translations explorer.mdx (Arabic)
benface Jan 28, 2022
93728d9
New translations explorer.mdx (Japanese)
benface Jan 28, 2022
c729e9b
New translations explorer.mdx (Korean)
benface Jan 28, 2022
2c78d44
New translations explorer.mdx (Chinese Simplified)
benface Jan 28, 2022
ca70c53
New translations index.json (Vietnamese)
benface Jan 28, 2022
38f618b
New translations introduction.mdx (Spanish)
benface Jan 28, 2022
bdd4d1f
New translations deprecating-a-subgraph.mdx (Arabic)
benface Jan 28, 2022
70f9eac
New translations define-subgraph-hosted.mdx (Spanish)
benface Jan 28, 2022
6189f2a
New translations define-subgraph-hosted.mdx (Arabic)
benface Jan 28, 2022
28a1201
New translations define-subgraph-hosted.mdx (Chinese Simplified)
benface Jan 28, 2022
ccf4766
New translations deprecating-a-subgraph.mdx (Spanish)
benface Jan 28, 2022
e38f841
New translations developer-faq.mdx (Spanish)
benface Jan 28, 2022
911af3c
New translations developer-faq.mdx (Arabic)
benface Jan 28, 2022
f390bd5
New translations distributed-systems.mdx (Spanish)
benface Jan 28, 2022
ba4fe29
New translations create-subgraph-hosted.mdx (Arabic)
benface Jan 28, 2022
54a4edb
New translations introduction.mdx (Arabic)
benface Jan 28, 2022
4c01b9b
New translations assemblyscript-api.mdx (Spanish)
benface Jan 28, 2022
aa19d1f
New translations introduction.mdx (Japanese)
benface Jan 28, 2022
6c0bf13
New translations introduction.mdx (Korean)
benface Jan 28, 2022
0ea5389
New translations introduction.mdx (Chinese Simplified)
benface Jan 28, 2022
03d8e73
New translations network.mdx (Spanish)
benface Jan 28, 2022
7f63f75
New translations network.mdx (Arabic)
benface Jan 28, 2022
808a99d
New translations network.mdx (Japanese)
benface Jan 28, 2022
65fb905
New translations network.mdx (Korean)
benface Jan 28, 2022
fa3f99c
New translations network.mdx (Chinese Simplified)
benface Jan 28, 2022
4322fc0
New translations assemblyscript-api.mdx (Arabic)
benface Jan 28, 2022
87db43c
New translations create-subgraph-hosted.mdx (Spanish)
benface Jan 28, 2022
fcad7dc
New translations assemblyscript-api.mdx (Japanese)
benface Jan 28, 2022
5435dcd
New translations assemblyscript-api.mdx (Korean)
benface Jan 28, 2022
dece50a
New translations assemblyscript-api.mdx (Chinese Simplified)
benface Jan 28, 2022
bba234f
New translations assemblyscript-api.mdx (Vietnamese)
benface Jan 28, 2022
4af6e9a
New translations assemblyscript-migration-guide.mdx (Spanish)
benface Jan 28, 2022
58bec46
New translations assemblyscript-migration-guide.mdx (Arabic)
benface Jan 28, 2022
7047923
New translations assemblyscript-migration-guide.mdx (Japanese)
benface Jan 28, 2022
af8d1d9
New translations distributed-systems.mdx (Arabic)
benface Jan 28, 2022
b9f78b7
New translations querying-from-your-app.mdx (Spanish)
benface Jan 28, 2022
6f12ab4
New translations querying-from-your-app.mdx (Arabic)
benface Jan 28, 2022
e04a1b8
New translations querying-from-your-app.mdx (Japanese)
benface Jan 28, 2022
ef3d31a
New translations quick-start.mdx (Spanish)
benface Jan 28, 2022
7b999bf
New translations quick-start.mdx (Arabic)
benface Jan 28, 2022
935587b
New translations quick-start.mdx (Japanese)
benface Jan 28, 2022
d287b5b
New translations quick-start.mdx (Chinese Simplified)
benface Jan 28, 2022
78ffa16
New translations deploy-subgraph-hosted.mdx (Spanish)
benface Jan 28, 2022
14edfba
New translations deploy-subgraph-hosted.mdx (Chinese Simplified)
benface Jan 28, 2022
622c6ef
New translations migrating-subgraph.mdx (Spanish)
benface Jan 28, 2022
f6b6f80
New translations migrating-subgraph.mdx (Arabic)
benface Jan 28, 2022
9c5f97e
New translations migrating-subgraph.mdx (Japanese)
benface Jan 28, 2022
923e28e
New translations graphql-api.mdx (Spanish)
benface Jan 28, 2022
90b0c8f
New translations graphql-api.mdx (Arabic)
benface Jan 28, 2022
cd6c1a8
New translations matchstick.mdx (Spanish)
benface Jan 28, 2022
c3ee41f
New translations query-the-graph.mdx (Japanese)
benface Jan 28, 2022
c75b306
New translations publish-subgraph.mdx (Spanish)
benface Jan 28, 2022
2b2417a
New translations publish-subgraph.mdx (Arabic)
benface Jan 28, 2022
6c4da9a
New translations publish-subgraph.mdx (Japanese)
benface Jan 28, 2022
49928c1
New translations query-the-graph.mdx (Spanish)
benface Jan 28, 2022
2de0702
New translations query-the-graph.mdx (Arabic)
benface Jan 28, 2022
749b422
New translations migrating-subgraph.mdx (Korean)
benface Jan 28, 2022
53993e1
New translations migrating-subgraph.mdx (Chinese Simplified)
benface Jan 28, 2022
17ebcb1
New translations studio-faq.mdx (Spanish)
benface Jan 28, 2022
d5a7527
New translations studio-faq.mdx (Arabic)
benface Jan 28, 2022
76245fc
New translations studio-faq.mdx (Chinese Simplified)
benface Jan 28, 2022
87926c1
New translations subgraph-studio.mdx (Spanish)
benface Jan 28, 2022
90ebb9b
New translations multisig.mdx (Spanish)
benface Jan 28, 2022
8a7a4fc
New translations subgraph-studio.mdx (Arabic)
benface Jan 28, 2022
17c5d12
New translations subgraph-studio.mdx (Japanese)
benface Jan 28, 2022
e84d445
New translations subgraph-studio.mdx (Korean)
benface Jan 28, 2022
48a36e5
New translations subgraph-studio.mdx (Vietnamese)
benface Jan 28, 2022
fe66603
New translations near.mdx (Spanish)
benface Jan 28, 2022
7b3abc5
New translations near.mdx (Arabic)
benface Jan 28, 2022
58e2a3f
New translations near.mdx (Japanese)
benface Jan 28, 2022
d1988e9
New translations near.mdx (Chinese Simplified)
benface Jan 28, 2022
1fe4862
New translations multisig.mdx (Arabic)
benface Jan 28, 2022
d3702e0
New translations migrating-subgraph.mdx (Vietnamese)
benface Jan 28, 2022
2e0a5c9
New translations what-is-hosted-service.mdx (Chinese Simplified)
benface Jan 28, 2022
3394056
New translations query-hosted-service.mdx (Spanish)
benface Jan 28, 2022
ec9bcad
New translations query-hosted-service.mdx (Arabic)
benface Jan 28, 2022
95465b0
New translations query-hosted-service.mdx (Japanese)
benface Jan 28, 2022
b852350
New translations query-hosted-service.mdx (Chinese Simplified)
benface Jan 28, 2022
8e6f47a
New translations what-is-hosted-service.mdx (Spanish)
benface Jan 28, 2022
f2995f9
New translations what-is-hosted-service.mdx (Arabic)
benface Jan 28, 2022
dc0eed9
New translations deploy-subgraph-studio.mdx (Chinese Simplified)
benface Jan 28, 2022
7eea84f
New translations billing.mdx (Spanish)
benface Jan 28, 2022
1e29b04
New translations billing.mdx (Arabic)
benface Jan 28, 2022
0abe198
New translations billing.mdx (Japanese)
benface Jan 28, 2022
2afe541
New translations billing.mdx (Korean)
benface Jan 28, 2022
6f0ad89
New translations billing.mdx (Chinese Simplified)
benface Jan 28, 2022
90b7bfa
New translations billing.mdx (Vietnamese)
benface Jan 28, 2022
11e454f
New translations deploy-subgraph-studio.mdx (Spanish)
benface Jan 28, 2022
f73da74
New translations deploy-subgraph-studio.mdx (Arabic)
benface Jan 28, 2022
1d0aaeb
New translations deploy-subgraph-studio.mdx (Japanese)
benface Jan 28, 2022
294c08c
New translations near.mdx (Vietnamese)
benface Jan 28, 2022
37cbb86
New translations curating.mdx (Spanish)
benface Jan 28, 2022
58d7791
New translations global.json (Korean)
benface Jan 28, 2022
c9b1f73
New translations indexing.mdx (Korean)
benface Jan 28, 2022
9e8843d
New translations indexing.mdx (Chinese Simplified)
benface Jan 28, 2022
12c108d
New translations indexing.mdx (Vietnamese)
benface Jan 28, 2022
fe9bb9f
New translations global.json (Spanish)
benface Jan 28, 2022
bf2ca09
New translations global.json (Arabic)
benface Jan 28, 2022
dc177e6
New translations global.json (Japanese)
benface Jan 28, 2022
9ccc401
New translations global.json (Chinese Simplified)
benface Jan 28, 2022
a3f2dde
New translations indexing.mdx (Arabic)
benface Jan 28, 2022
707c99d
New translations index.json (Spanish)
benface Jan 28, 2022
4c16b28
New translations index.json (Arabic)
benface Jan 28, 2022
736d627
New translations index.json (Japanese)
benface Jan 28, 2022
08ced87
New translations index.json (Korean)
benface Jan 28, 2022
7a53be5
New translations index.json (Chinese Simplified)
benface Jan 28, 2022
d0ba571
New translations indexing.mdx (Japanese)
benface Jan 28, 2022
a5752dc
New translations indexing.mdx (Spanish)
benface Jan 28, 2022
e6324cb
New translations curating.mdx (Arabic)
benface Jan 28, 2022
60c5fe5
New translations delegating.mdx (Japanese)
benface Jan 28, 2022
c1de4af
New translations curating.mdx (Japanese)
benface Jan 28, 2022
8d0e837
New translations curating.mdx (Korean)
benface Jan 28, 2022
ed46692
New translations curating.mdx (Chinese Simplified)
benface Jan 28, 2022
b012561
New translations curating.mdx (Vietnamese)
benface Jan 28, 2022
504d991
New translations delegating.mdx (Spanish)
benface Jan 28, 2022
c3418e1
New translations delegating.mdx (Arabic)
benface Jan 28, 2022
e4f9109
New translations delegating.mdx (Korean)
benface Jan 28, 2022
f7013ad
New translations explorer.mdx (Vietnamese)
benface Jan 28, 2022
1261dd0
New translations delegating.mdx (Chinese Simplified)
benface Jan 28, 2022
04470f5
New translations delegating.mdx (Vietnamese)
benface Jan 28, 2022
fecb1bc
New translations explorer.mdx (Spanish)
benface Jan 28, 2022
bc375eb
New translations explorer.mdx (Arabic)
benface Jan 28, 2022
e2afda9
New translations explorer.mdx (Japanese)
benface Jan 28, 2022
2627f40
New translations explorer.mdx (Korean)
benface Jan 28, 2022
1813022
New translations explorer.mdx (Chinese Simplified)
benface Jan 28, 2022
845c61b
Formatting fixes
benface Jan 28, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
New translations introduction.mdx (Chinese Simplified)
  • Loading branch information
benface committed Jan 28, 2022
commit 25bdd2f08e43171bae9a3335a712c065e09d16bd
50 changes: 24 additions & 26 deletions pages/zh/about/introduction.mdx
Original file line number Diff line number Diff line change
@@ -1,49 +1,47 @@
---
title: 介绍
title: Introduction
---

本页将解释什么是 The Graph,以及你如何开始。
This page will explain what The Graph is and how you can get started.

## 什么是 The Graph
## What The Graph Is

The Graph 是一个去中心化的协议,用于索引和查询区块链的数据,首先是从以太坊开始的。 它使查询那些难以直接查询的数据成为可能。
The Graph is a decentralized protocol for indexing and querying data from blockchains, starting with Ethereum. It makes it possible to query data that is difficult to query directly.

[Uniswap](https://uniswap.org/)这样具有复杂智能合约的项目,以及像 [Bored Ape Yacht Club](https://boredapeyachtclub.com/) 这样的 NFTs 倡议,都在以太坊区块链上存储数据,因此,除了直接从区块链上读取基本数据外,真的很难。
Projects with complex smart contracts like [Uniswap](https://uniswap.org/) and NFTs initiatives like [Bored Ape Yacht Club](https://boredapeyachtclub.com/) store data on the Ethereum blockchain, making it really difficult to read anything other than basic data directly from the blockchain.

Bored Ape Yacht Club 的案例中,我们可以对 [合约](https://etherscan.io/address/0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d#code)进行基本的读取操作,比如获得某个 Ape 的所有者,根据他们的 ID 获得某个 Ape 的内容 URI,或者总供应量,因为这些读取操作是直接编入智能合约的,但是更高级的现实世界的查询和操作,比如聚合、搜索、关系和非粗略的过滤是不可能的。 例如,如果我们想查询某个地址所拥有的 apes,并通过它的某个特征进行过滤,我们将无法通过直接与合约本身进行交互来获得该信息。
In the case of Bored Ape Yacht Club, we can perform basic read operations on [the contract](https://etherscan.io/address/0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d#code) like getting the owner of a certain Ape, getting the content URI of an Ape based on their ID, or the total supply, as these read operations are programmed directly into the smart contract, but more advanced real-world queries and operations like aggregation, search, relationships, and non-trivial filtering are not possible. For example, if we wanted to query for apes that are owned by a certain address, and filter by one of its characteristics, we would not be able to get that information by interacting directly with the contract itself.

为了获得这些数据,你必须处理曾经发出的每一个 [`传输`](https://etherscan.io/address/0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d#code#L1746) 事件,使用 Token ID IPFS 的哈希值从 IPFS 读取元数据,然后将其汇总。 即使是这些类型的相对简单的问题,在浏览器中运行的去中心化应用程序(dapp)也需要**几个小时甚至几天** 才能得到答案。
To get this data, you would have to process every single [`transfer`](https://etherscan.io/address/0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d#code#L1746) event ever emitted, read the metadata from IPFS using the Token ID and IPFS hash, and then aggregate it. Even for these types of relatively simple questions, it would take **hours or even days** for a decentralized application (dapp) running in a browser to get an answer.

你也可以建立你自己的服务器,在那里处理交易,把它们保存到数据库,并在上面建立一个 API 终端,以便查询数据。 然而,这种选择是资源密集型的,需要维护,会出现单点故障,并破坏了去中心化化所需的重要安全属性。
You could also build out your own server, process the transactions there, save them to a database, and build an API endpoint on top of it all in order to query the data. However, this option is resource intensive, needs maintenance, presents a single point of failure, and breaks important security properties required for decentralization.

**为区块链数据编制索引真的非常非常难。**
**Indexing blockchain data is really, really hard.**

区块链的属性,如最终性、链重组或未封闭的区块,使这一过程进一步复杂化,并使从区块链数据中检索出正确的查询结果不仅耗时,而且在概念上也很难。
Blockchain properties like finality, chain reorganizations, or uncled blocks complicate this process further, and make it not just time consuming but conceptually hard to retrieve correct query results from blockchain data.

The Graph 通过一个去中心化的协议解决了这一问题,该协议可以对区块链数据进行索引并实现高性能和高效率的查询。 这些 API(索引的 "子图")然后可以用标准的 GraphQL API 进行查询。 今天,有一个托管服务,也有一个具有相同功能的分去中心化协议。 两者都由 [](https://github.com/graphprotocol/graph-node)Graph Node
The Graph solves this with a decentralized protocol that indexes and enables the performant and efficient querying of blockchain data. These APIs (indexed "subgraphs") can then be queried with a standard GraphQL API. Today, there is a hosted service as well as a decentralized protocol with the same capabilities. Both are backed by the open source implementation of [Graph Node](https://github.com/graphprotocol/graph-node).

的开放源码实现支持。
## How The Graph Works

## The Graph 是如何工作的
The Graph learns what and how to index Ethereum data based on subgraph descriptions, known as the subgraph manifest. The subgraph description defines the smart contracts of interest for a subgraph, the events in those contracts to pay attention to, and how to map event data to data that The Graph will store in its database.

Graph 根据子图描述(称为子图清单)来学习什么以及如何为以太坊数据建立索引。 子图描述定义了子图所关注的智能合约,这些合约中需要关注的事件,以及如何将事件数据映射到 The Graph 将存储在其数据库中的数据。
Once you have written a `subgraph manifest`, you use the Graph CLI to store the definition in IPFS and tell the indexer to start indexing data for that subgraph.

一旦你写好了 `子图清单 `,你就可以使用 Graph CLI 将该定义存储在 IPFS 中,并告诉索引人开始为该子图编制索引数据。

这张图更详细地介绍了一旦部署了子图清单,处理以太坊交易的数据流。
This diagram gives more detail about the flow of data once a subgraph manifest has been deployed, dealing with Ethereum transactions:

![](/img/graph-dataflow.png)

流程遵循这些步骤:
The flow follows these steps:

1. 一个去中心化的应用程序通过智能合约上的交易向以太坊添加数据。
2. 智能合约在处理交易时,会发出一个或多个事件。
3. Graph 节点不断扫描以太坊的新区块和它们可能包含的子图的数据。
4. Graph 节点在这些区块中为你的子图找到 Ethereum 事件并运行你提供的映射处理程序。 映射是一个 WASM 模块,它创建或更新 Graph Node 存储的数据实体,以响应 Ethereum 事件。
5. 去中心化的应用程序使用节点的[GraphQL 端点](https://graphql.org/learn/),从区块链的索引中查询 Graph 节点的数据。 Graph 节点反过来将 GraphQL 查询转化为对其底层数据存储的查询,以便利用存储的索引功能来获取这些数据。 去中心化的应用程序在一个丰富的用户界面中为终端用户显示这些数据,他们用这些数据在以太坊上发行新的交易。 就这样周而复始。
1. A decentralized application adds data to Ethereum through a transaction on a smart contract.
2. The smart contract emits one or more events while processing the transaction.
3. Graph Node continually scans Ethereum for new blocks and the data for your subgraph they may contain.
4. Graph Node finds Ethereum events for your subgraph in these blocks and runs the mapping handlers you provided. The mapping is a WASM module that creates or updates the data entities that Graph Node stores in response to Ethereum events.
5. The decentralized application queries the Graph Node for data indexed from the blockchain, using the node's [GraphQL endpoint](https://graphql.org/learn/). The Graph Node in turn translates the GraphQL queries into queries for its underlying data store in order to fetch this data, making use of the store's indexing capabilities. The decentralized application displays this data in a rich UI for end-users, which they use to issue new transactions on Ethereum. The cycle repeats.

## 下一步
## Next Steps

在下面的章节中,我们将更详细地介绍如何定义子图,如何部署它们,以及如何从 Graph 节点建立的索引中查询数据。
In the following sections we will go into more detail on how to define subgraphs, how to deploy them, and how to query data from the indexes that Graph Node builds.

在你开始编写你自己的子图之前,你可能想看一下 Graph 浏览器,探索一些已经部署的子图。 每个子图的页面都包含一个操作面板,让你用 GraphQL 查询该子图的数据。
Before you start writing your own subgraph, you might want to have a look at the Graph Explorer and explore some of the subgraphs that have already been deployed. The page for each subgraph contains a playground that lets you query that subgraph's data with GraphQL.