diff --git a/website/next-env.d.ts b/website/next-env.d.ts index a4a7b3f5cfa2..4f11a03dc6cc 100644 --- a/website/next-env.d.ts +++ b/website/next-env.d.ts @@ -2,4 +2,4 @@ /// // NOTE: This file should not be edited -// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information. +// see https://nextjs.org/docs/basic-features/typescript for more information. diff --git a/website/pages/ar/subgraphs.mdx b/website/pages/ar/subgraphs.mdx new file mode 100644 index 000000000000..27b452211477 --- /dev/null +++ b/website/pages/ar/subgraphs.mdx @@ -0,0 +1,41 @@ +--- +title: Subgraphs +--- + +## What is a Subgraph? + +A subgraph is a custom, open API that extracts data from a blockchain, processes it, and stores it so it can be easily queried via GraphQL. + +### Subgraph Capabilities + +- **Access Data:** Subgraphs enable the querying and indexing of blockchain data for web3. +- **Build:** Developers can build, deploy, and publish subgraphs to The Graph Network. To get started, check out the subgraph developer [Quick Start](quick-start/). +- **Index & Query:** Once a subgraph is indexed, anyone can query it. Explore and query all subgraphs published to the network in [Graph Explorer](https://thegraph.com/explorer). + +## Inside a Subgraph + +The subgraph manifest, `subgraph.yaml`, defines the smart contracts & network your subgraph will index, the events from these contracts to pay attention to, and how to map event data to entities that Graph Node stores and allows to query. + +The **subgraph definition** consists of the following files: + +- `subgraph.yaml`: Contains the subgraph manifest + +- `schema.graphql`: A GraphQL schema defining the data stored for your subgraph and how to query it via GraphQL + +- `mapping.ts`: [AssemblyScript Mappings](https://github.com/AssemblyScript/assemblyscript) code that translates event data into entities defined in your schema + +To learn more about each of subgraph component, check out [creating a subgraph](/developing/creating-a-subgraph/). + +## Subgraph Development + +1. [Create a subgraph](/developing/creating-a-subgraph/) +2. [Deploy a subgraph](/deploying/deploying-a-subgraph-to-studio/) +3. [Test a subgraph](/deploying/subgraph-studio/#testing-your-subgraph-in-subgraph-studio) +4. [Publish a subgraph](/publishing/publishing-a-subgraph/) +5. [Signal on a subgraph](/publishing/publishing-a-subgraph/#adding-signal-to-your-subgraph) + +## Subgraph Lifecycle + +Here is a general overview of a subgraph’s lifecycle: + +![Subgraph Lifecycle](/img/subgraph-lifecycle.png) diff --git a/website/pages/cs/subgraphs.mdx b/website/pages/cs/subgraphs.mdx new file mode 100644 index 000000000000..27b452211477 --- /dev/null +++ b/website/pages/cs/subgraphs.mdx @@ -0,0 +1,41 @@ +--- +title: Subgraphs +--- + +## What is a Subgraph? + +A subgraph is a custom, open API that extracts data from a blockchain, processes it, and stores it so it can be easily queried via GraphQL. + +### Subgraph Capabilities + +- **Access Data:** Subgraphs enable the querying and indexing of blockchain data for web3. +- **Build:** Developers can build, deploy, and publish subgraphs to The Graph Network. To get started, check out the subgraph developer [Quick Start](quick-start/). +- **Index & Query:** Once a subgraph is indexed, anyone can query it. Explore and query all subgraphs published to the network in [Graph Explorer](https://thegraph.com/explorer). + +## Inside a Subgraph + +The subgraph manifest, `subgraph.yaml`, defines the smart contracts & network your subgraph will index, the events from these contracts to pay attention to, and how to map event data to entities that Graph Node stores and allows to query. + +The **subgraph definition** consists of the following files: + +- `subgraph.yaml`: Contains the subgraph manifest + +- `schema.graphql`: A GraphQL schema defining the data stored for your subgraph and how to query it via GraphQL + +- `mapping.ts`: [AssemblyScript Mappings](https://github.com/AssemblyScript/assemblyscript) code that translates event data into entities defined in your schema + +To learn more about each of subgraph component, check out [creating a subgraph](/developing/creating-a-subgraph/). + +## Subgraph Development + +1. [Create a subgraph](/developing/creating-a-subgraph/) +2. [Deploy a subgraph](/deploying/deploying-a-subgraph-to-studio/) +3. [Test a subgraph](/deploying/subgraph-studio/#testing-your-subgraph-in-subgraph-studio) +4. [Publish a subgraph](/publishing/publishing-a-subgraph/) +5. [Signal on a subgraph](/publishing/publishing-a-subgraph/#adding-signal-to-your-subgraph) + +## Subgraph Lifecycle + +Here is a general overview of a subgraph’s lifecycle: + +![Subgraph Lifecycle](/img/subgraph-lifecycle.png) diff --git a/website/pages/de/subgraphs.mdx b/website/pages/de/subgraphs.mdx new file mode 100644 index 000000000000..27b452211477 --- /dev/null +++ b/website/pages/de/subgraphs.mdx @@ -0,0 +1,41 @@ +--- +title: Subgraphs +--- + +## What is a Subgraph? + +A subgraph is a custom, open API that extracts data from a blockchain, processes it, and stores it so it can be easily queried via GraphQL. + +### Subgraph Capabilities + +- **Access Data:** Subgraphs enable the querying and indexing of blockchain data for web3. +- **Build:** Developers can build, deploy, and publish subgraphs to The Graph Network. To get started, check out the subgraph developer [Quick Start](quick-start/). +- **Index & Query:** Once a subgraph is indexed, anyone can query it. Explore and query all subgraphs published to the network in [Graph Explorer](https://thegraph.com/explorer). + +## Inside a Subgraph + +The subgraph manifest, `subgraph.yaml`, defines the smart contracts & network your subgraph will index, the events from these contracts to pay attention to, and how to map event data to entities that Graph Node stores and allows to query. + +The **subgraph definition** consists of the following files: + +- `subgraph.yaml`: Contains the subgraph manifest + +- `schema.graphql`: A GraphQL schema defining the data stored for your subgraph and how to query it via GraphQL + +- `mapping.ts`: [AssemblyScript Mappings](https://github.com/AssemblyScript/assemblyscript) code that translates event data into entities defined in your schema + +To learn more about each of subgraph component, check out [creating a subgraph](/developing/creating-a-subgraph/). + +## Subgraph Development + +1. [Create a subgraph](/developing/creating-a-subgraph/) +2. [Deploy a subgraph](/deploying/deploying-a-subgraph-to-studio/) +3. [Test a subgraph](/deploying/subgraph-studio/#testing-your-subgraph-in-subgraph-studio) +4. [Publish a subgraph](/publishing/publishing-a-subgraph/) +5. [Signal on a subgraph](/publishing/publishing-a-subgraph/#adding-signal-to-your-subgraph) + +## Subgraph Lifecycle + +Here is a general overview of a subgraph’s lifecycle: + +![Subgraph Lifecycle](/img/subgraph-lifecycle.png) diff --git a/website/pages/en/_meta.js b/website/pages/en/_meta.js index 89bf6fc4709c..504a9e0a9263 100644 --- a/website/pages/en/_meta.js +++ b/website/pages/en/_meta.js @@ -18,6 +18,7 @@ export default { title: 'Subgraphs', }, 'quick-start': '', + subgraphs: '', developing: 'Developing', deploying: 'Deploying', publishing: 'Publishing', diff --git a/website/pages/en/subgraphs.mdx b/website/pages/en/subgraphs.mdx new file mode 100644 index 000000000000..698de7622d41 --- /dev/null +++ b/website/pages/en/subgraphs.mdx @@ -0,0 +1,41 @@ +--- +title: Subgraphs +--- + +## What is a Subgraph? + +A subgraph is a custom, open API that extracts data from a blockchain, processes it, and stores it so it can be easily queried via GraphQL. + +### Subgraph Capabilities + +- **Access Data:** Subgraphs enable the querying and indexing of blockchain data for web3. +- **Build:** Developers can build, deploy, and publish subgraphs to The Graph Network. To get started, check out the subgraph developer [Quick Start](quick-start/). +- **Index & Query:** Once a subgraph is indexed, anyone can query it. Explore and query all subgraphs published to the network in [Graph Explorer](https://thegraph.com/explorer). + +## Inside a Subgraph + +The subgraph manifest, `subgraph.yaml`, defines the smart contracts & network your subgraph will index, the events from these contracts to pay attention to, and how to map event data to entities that Graph Node stores and allows to query. + +The **subgraph definition** consists of the following files: + +- `subgraph.yaml`: Contains the subgraph manifest + +- `schema.graphql`: A GraphQL schema defining the data stored for your subgraph and how to query it via GraphQL + +- `mapping.ts`: [AssemblyScript Mappings](https://github.com/AssemblyScript/assemblyscript) code that translates event data into entities defined in your schema + +To learn more about each subgraph component, check out [creating a subgraph](/developing/creating-a-subgraph/). + +## Subgraph Development + +1. [Create a subgraph](/developing/creating-a-subgraph/) +2. [Deploy a subgraph](/deploying/deploying-a-subgraph-to-studio/) +3. [Test a subgraph](/deploying/subgraph-studio/#testing-your-subgraph-in-subgraph-studio) +4. [Publish a subgraph](/publishing/publishing-a-subgraph/) +5. [Signal on a subgraph](/publishing/publishing-a-subgraph/#adding-signal-to-your-subgraph) + +## Subgraph Lifecycle + +Here is a general overview of a subgraph’s lifecycle: + +![Subgraph Lifecycle](/img/subgraph-lifecycle.png) diff --git a/website/pages/es/subgraphs.mdx b/website/pages/es/subgraphs.mdx new file mode 100644 index 000000000000..27b452211477 --- /dev/null +++ b/website/pages/es/subgraphs.mdx @@ -0,0 +1,41 @@ +--- +title: Subgraphs +--- + +## What is a Subgraph? + +A subgraph is a custom, open API that extracts data from a blockchain, processes it, and stores it so it can be easily queried via GraphQL. + +### Subgraph Capabilities + +- **Access Data:** Subgraphs enable the querying and indexing of blockchain data for web3. +- **Build:** Developers can build, deploy, and publish subgraphs to The Graph Network. To get started, check out the subgraph developer [Quick Start](quick-start/). +- **Index & Query:** Once a subgraph is indexed, anyone can query it. Explore and query all subgraphs published to the network in [Graph Explorer](https://thegraph.com/explorer). + +## Inside a Subgraph + +The subgraph manifest, `subgraph.yaml`, defines the smart contracts & network your subgraph will index, the events from these contracts to pay attention to, and how to map event data to entities that Graph Node stores and allows to query. + +The **subgraph definition** consists of the following files: + +- `subgraph.yaml`: Contains the subgraph manifest + +- `schema.graphql`: A GraphQL schema defining the data stored for your subgraph and how to query it via GraphQL + +- `mapping.ts`: [AssemblyScript Mappings](https://github.com/AssemblyScript/assemblyscript) code that translates event data into entities defined in your schema + +To learn more about each of subgraph component, check out [creating a subgraph](/developing/creating-a-subgraph/). + +## Subgraph Development + +1. [Create a subgraph](/developing/creating-a-subgraph/) +2. [Deploy a subgraph](/deploying/deploying-a-subgraph-to-studio/) +3. [Test a subgraph](/deploying/subgraph-studio/#testing-your-subgraph-in-subgraph-studio) +4. [Publish a subgraph](/publishing/publishing-a-subgraph/) +5. [Signal on a subgraph](/publishing/publishing-a-subgraph/#adding-signal-to-your-subgraph) + +## Subgraph Lifecycle + +Here is a general overview of a subgraph’s lifecycle: + +![Subgraph Lifecycle](/img/subgraph-lifecycle.png) diff --git a/website/pages/fr/subgraphs.mdx b/website/pages/fr/subgraphs.mdx new file mode 100644 index 000000000000..27b452211477 --- /dev/null +++ b/website/pages/fr/subgraphs.mdx @@ -0,0 +1,41 @@ +--- +title: Subgraphs +--- + +## What is a Subgraph? + +A subgraph is a custom, open API that extracts data from a blockchain, processes it, and stores it so it can be easily queried via GraphQL. + +### Subgraph Capabilities + +- **Access Data:** Subgraphs enable the querying and indexing of blockchain data for web3. +- **Build:** Developers can build, deploy, and publish subgraphs to The Graph Network. To get started, check out the subgraph developer [Quick Start](quick-start/). +- **Index & Query:** Once a subgraph is indexed, anyone can query it. Explore and query all subgraphs published to the network in [Graph Explorer](https://thegraph.com/explorer). + +## Inside a Subgraph + +The subgraph manifest, `subgraph.yaml`, defines the smart contracts & network your subgraph will index, the events from these contracts to pay attention to, and how to map event data to entities that Graph Node stores and allows to query. + +The **subgraph definition** consists of the following files: + +- `subgraph.yaml`: Contains the subgraph manifest + +- `schema.graphql`: A GraphQL schema defining the data stored for your subgraph and how to query it via GraphQL + +- `mapping.ts`: [AssemblyScript Mappings](https://github.com/AssemblyScript/assemblyscript) code that translates event data into entities defined in your schema + +To learn more about each of subgraph component, check out [creating a subgraph](/developing/creating-a-subgraph/). + +## Subgraph Development + +1. [Create a subgraph](/developing/creating-a-subgraph/) +2. [Deploy a subgraph](/deploying/deploying-a-subgraph-to-studio/) +3. [Test a subgraph](/deploying/subgraph-studio/#testing-your-subgraph-in-subgraph-studio) +4. [Publish a subgraph](/publishing/publishing-a-subgraph/) +5. [Signal on a subgraph](/publishing/publishing-a-subgraph/#adding-signal-to-your-subgraph) + +## Subgraph Lifecycle + +Here is a general overview of a subgraph’s lifecycle: + +![Subgraph Lifecycle](/img/subgraph-lifecycle.png) diff --git a/website/pages/ha/subgraphs.mdx b/website/pages/ha/subgraphs.mdx new file mode 100644 index 000000000000..27b452211477 --- /dev/null +++ b/website/pages/ha/subgraphs.mdx @@ -0,0 +1,41 @@ +--- +title: Subgraphs +--- + +## What is a Subgraph? + +A subgraph is a custom, open API that extracts data from a blockchain, processes it, and stores it so it can be easily queried via GraphQL. + +### Subgraph Capabilities + +- **Access Data:** Subgraphs enable the querying and indexing of blockchain data for web3. +- **Build:** Developers can build, deploy, and publish subgraphs to The Graph Network. To get started, check out the subgraph developer [Quick Start](quick-start/). +- **Index & Query:** Once a subgraph is indexed, anyone can query it. Explore and query all subgraphs published to the network in [Graph Explorer](https://thegraph.com/explorer). + +## Inside a Subgraph + +The subgraph manifest, `subgraph.yaml`, defines the smart contracts & network your subgraph will index, the events from these contracts to pay attention to, and how to map event data to entities that Graph Node stores and allows to query. + +The **subgraph definition** consists of the following files: + +- `subgraph.yaml`: Contains the subgraph manifest + +- `schema.graphql`: A GraphQL schema defining the data stored for your subgraph and how to query it via GraphQL + +- `mapping.ts`: [AssemblyScript Mappings](https://github.com/AssemblyScript/assemblyscript) code that translates event data into entities defined in your schema + +To learn more about each of subgraph component, check out [creating a subgraph](/developing/creating-a-subgraph/). + +## Subgraph Development + +1. [Create a subgraph](/developing/creating-a-subgraph/) +2. [Deploy a subgraph](/deploying/deploying-a-subgraph-to-studio/) +3. [Test a subgraph](/deploying/subgraph-studio/#testing-your-subgraph-in-subgraph-studio) +4. [Publish a subgraph](/publishing/publishing-a-subgraph/) +5. [Signal on a subgraph](/publishing/publishing-a-subgraph/#adding-signal-to-your-subgraph) + +## Subgraph Lifecycle + +Here is a general overview of a subgraph’s lifecycle: + +![Subgraph Lifecycle](/img/subgraph-lifecycle.png) diff --git a/website/pages/hi/subgraphs.mdx b/website/pages/hi/subgraphs.mdx new file mode 100644 index 000000000000..27b452211477 --- /dev/null +++ b/website/pages/hi/subgraphs.mdx @@ -0,0 +1,41 @@ +--- +title: Subgraphs +--- + +## What is a Subgraph? + +A subgraph is a custom, open API that extracts data from a blockchain, processes it, and stores it so it can be easily queried via GraphQL. + +### Subgraph Capabilities + +- **Access Data:** Subgraphs enable the querying and indexing of blockchain data for web3. +- **Build:** Developers can build, deploy, and publish subgraphs to The Graph Network. To get started, check out the subgraph developer [Quick Start](quick-start/). +- **Index & Query:** Once a subgraph is indexed, anyone can query it. Explore and query all subgraphs published to the network in [Graph Explorer](https://thegraph.com/explorer). + +## Inside a Subgraph + +The subgraph manifest, `subgraph.yaml`, defines the smart contracts & network your subgraph will index, the events from these contracts to pay attention to, and how to map event data to entities that Graph Node stores and allows to query. + +The **subgraph definition** consists of the following files: + +- `subgraph.yaml`: Contains the subgraph manifest + +- `schema.graphql`: A GraphQL schema defining the data stored for your subgraph and how to query it via GraphQL + +- `mapping.ts`: [AssemblyScript Mappings](https://github.com/AssemblyScript/assemblyscript) code that translates event data into entities defined in your schema + +To learn more about each of subgraph component, check out [creating a subgraph](/developing/creating-a-subgraph/). + +## Subgraph Development + +1. [Create a subgraph](/developing/creating-a-subgraph/) +2. [Deploy a subgraph](/deploying/deploying-a-subgraph-to-studio/) +3. [Test a subgraph](/deploying/subgraph-studio/#testing-your-subgraph-in-subgraph-studio) +4. [Publish a subgraph](/publishing/publishing-a-subgraph/) +5. [Signal on a subgraph](/publishing/publishing-a-subgraph/#adding-signal-to-your-subgraph) + +## Subgraph Lifecycle + +Here is a general overview of a subgraph’s lifecycle: + +![Subgraph Lifecycle](/img/subgraph-lifecycle.png) diff --git a/website/pages/it/subgraphs.mdx b/website/pages/it/subgraphs.mdx new file mode 100644 index 000000000000..27b452211477 --- /dev/null +++ b/website/pages/it/subgraphs.mdx @@ -0,0 +1,41 @@ +--- +title: Subgraphs +--- + +## What is a Subgraph? + +A subgraph is a custom, open API that extracts data from a blockchain, processes it, and stores it so it can be easily queried via GraphQL. + +### Subgraph Capabilities + +- **Access Data:** Subgraphs enable the querying and indexing of blockchain data for web3. +- **Build:** Developers can build, deploy, and publish subgraphs to The Graph Network. To get started, check out the subgraph developer [Quick Start](quick-start/). +- **Index & Query:** Once a subgraph is indexed, anyone can query it. Explore and query all subgraphs published to the network in [Graph Explorer](https://thegraph.com/explorer). + +## Inside a Subgraph + +The subgraph manifest, `subgraph.yaml`, defines the smart contracts & network your subgraph will index, the events from these contracts to pay attention to, and how to map event data to entities that Graph Node stores and allows to query. + +The **subgraph definition** consists of the following files: + +- `subgraph.yaml`: Contains the subgraph manifest + +- `schema.graphql`: A GraphQL schema defining the data stored for your subgraph and how to query it via GraphQL + +- `mapping.ts`: [AssemblyScript Mappings](https://github.com/AssemblyScript/assemblyscript) code that translates event data into entities defined in your schema + +To learn more about each of subgraph component, check out [creating a subgraph](/developing/creating-a-subgraph/). + +## Subgraph Development + +1. [Create a subgraph](/developing/creating-a-subgraph/) +2. [Deploy a subgraph](/deploying/deploying-a-subgraph-to-studio/) +3. [Test a subgraph](/deploying/subgraph-studio/#testing-your-subgraph-in-subgraph-studio) +4. [Publish a subgraph](/publishing/publishing-a-subgraph/) +5. [Signal on a subgraph](/publishing/publishing-a-subgraph/#adding-signal-to-your-subgraph) + +## Subgraph Lifecycle + +Here is a general overview of a subgraph’s lifecycle: + +![Subgraph Lifecycle](/img/subgraph-lifecycle.png) diff --git a/website/pages/ja/subgraphs.mdx b/website/pages/ja/subgraphs.mdx new file mode 100644 index 000000000000..27b452211477 --- /dev/null +++ b/website/pages/ja/subgraphs.mdx @@ -0,0 +1,41 @@ +--- +title: Subgraphs +--- + +## What is a Subgraph? + +A subgraph is a custom, open API that extracts data from a blockchain, processes it, and stores it so it can be easily queried via GraphQL. + +### Subgraph Capabilities + +- **Access Data:** Subgraphs enable the querying and indexing of blockchain data for web3. +- **Build:** Developers can build, deploy, and publish subgraphs to The Graph Network. To get started, check out the subgraph developer [Quick Start](quick-start/). +- **Index & Query:** Once a subgraph is indexed, anyone can query it. Explore and query all subgraphs published to the network in [Graph Explorer](https://thegraph.com/explorer). + +## Inside a Subgraph + +The subgraph manifest, `subgraph.yaml`, defines the smart contracts & network your subgraph will index, the events from these contracts to pay attention to, and how to map event data to entities that Graph Node stores and allows to query. + +The **subgraph definition** consists of the following files: + +- `subgraph.yaml`: Contains the subgraph manifest + +- `schema.graphql`: A GraphQL schema defining the data stored for your subgraph and how to query it via GraphQL + +- `mapping.ts`: [AssemblyScript Mappings](https://github.com/AssemblyScript/assemblyscript) code that translates event data into entities defined in your schema + +To learn more about each of subgraph component, check out [creating a subgraph](/developing/creating-a-subgraph/). + +## Subgraph Development + +1. [Create a subgraph](/developing/creating-a-subgraph/) +2. [Deploy a subgraph](/deploying/deploying-a-subgraph-to-studio/) +3. [Test a subgraph](/deploying/subgraph-studio/#testing-your-subgraph-in-subgraph-studio) +4. [Publish a subgraph](/publishing/publishing-a-subgraph/) +5. [Signal on a subgraph](/publishing/publishing-a-subgraph/#adding-signal-to-your-subgraph) + +## Subgraph Lifecycle + +Here is a general overview of a subgraph’s lifecycle: + +![Subgraph Lifecycle](/img/subgraph-lifecycle.png) diff --git a/website/pages/ko/subgraphs.mdx b/website/pages/ko/subgraphs.mdx new file mode 100644 index 000000000000..27b452211477 --- /dev/null +++ b/website/pages/ko/subgraphs.mdx @@ -0,0 +1,41 @@ +--- +title: Subgraphs +--- + +## What is a Subgraph? + +A subgraph is a custom, open API that extracts data from a blockchain, processes it, and stores it so it can be easily queried via GraphQL. + +### Subgraph Capabilities + +- **Access Data:** Subgraphs enable the querying and indexing of blockchain data for web3. +- **Build:** Developers can build, deploy, and publish subgraphs to The Graph Network. To get started, check out the subgraph developer [Quick Start](quick-start/). +- **Index & Query:** Once a subgraph is indexed, anyone can query it. Explore and query all subgraphs published to the network in [Graph Explorer](https://thegraph.com/explorer). + +## Inside a Subgraph + +The subgraph manifest, `subgraph.yaml`, defines the smart contracts & network your subgraph will index, the events from these contracts to pay attention to, and how to map event data to entities that Graph Node stores and allows to query. + +The **subgraph definition** consists of the following files: + +- `subgraph.yaml`: Contains the subgraph manifest + +- `schema.graphql`: A GraphQL schema defining the data stored for your subgraph and how to query it via GraphQL + +- `mapping.ts`: [AssemblyScript Mappings](https://github.com/AssemblyScript/assemblyscript) code that translates event data into entities defined in your schema + +To learn more about each of subgraph component, check out [creating a subgraph](/developing/creating-a-subgraph/). + +## Subgraph Development + +1. [Create a subgraph](/developing/creating-a-subgraph/) +2. [Deploy a subgraph](/deploying/deploying-a-subgraph-to-studio/) +3. [Test a subgraph](/deploying/subgraph-studio/#testing-your-subgraph-in-subgraph-studio) +4. [Publish a subgraph](/publishing/publishing-a-subgraph/) +5. [Signal on a subgraph](/publishing/publishing-a-subgraph/#adding-signal-to-your-subgraph) + +## Subgraph Lifecycle + +Here is a general overview of a subgraph’s lifecycle: + +![Subgraph Lifecycle](/img/subgraph-lifecycle.png) diff --git a/website/pages/mr/subgraphs.mdx b/website/pages/mr/subgraphs.mdx new file mode 100644 index 000000000000..27b452211477 --- /dev/null +++ b/website/pages/mr/subgraphs.mdx @@ -0,0 +1,41 @@ +--- +title: Subgraphs +--- + +## What is a Subgraph? + +A subgraph is a custom, open API that extracts data from a blockchain, processes it, and stores it so it can be easily queried via GraphQL. + +### Subgraph Capabilities + +- **Access Data:** Subgraphs enable the querying and indexing of blockchain data for web3. +- **Build:** Developers can build, deploy, and publish subgraphs to The Graph Network. To get started, check out the subgraph developer [Quick Start](quick-start/). +- **Index & Query:** Once a subgraph is indexed, anyone can query it. Explore and query all subgraphs published to the network in [Graph Explorer](https://thegraph.com/explorer). + +## Inside a Subgraph + +The subgraph manifest, `subgraph.yaml`, defines the smart contracts & network your subgraph will index, the events from these contracts to pay attention to, and how to map event data to entities that Graph Node stores and allows to query. + +The **subgraph definition** consists of the following files: + +- `subgraph.yaml`: Contains the subgraph manifest + +- `schema.graphql`: A GraphQL schema defining the data stored for your subgraph and how to query it via GraphQL + +- `mapping.ts`: [AssemblyScript Mappings](https://github.com/AssemblyScript/assemblyscript) code that translates event data into entities defined in your schema + +To learn more about each of subgraph component, check out [creating a subgraph](/developing/creating-a-subgraph/). + +## Subgraph Development + +1. [Create a subgraph](/developing/creating-a-subgraph/) +2. [Deploy a subgraph](/deploying/deploying-a-subgraph-to-studio/) +3. [Test a subgraph](/deploying/subgraph-studio/#testing-your-subgraph-in-subgraph-studio) +4. [Publish a subgraph](/publishing/publishing-a-subgraph/) +5. [Signal on a subgraph](/publishing/publishing-a-subgraph/#adding-signal-to-your-subgraph) + +## Subgraph Lifecycle + +Here is a general overview of a subgraph’s lifecycle: + +![Subgraph Lifecycle](/img/subgraph-lifecycle.png) diff --git a/website/pages/nl/subgraphs.mdx b/website/pages/nl/subgraphs.mdx new file mode 100644 index 000000000000..27b452211477 --- /dev/null +++ b/website/pages/nl/subgraphs.mdx @@ -0,0 +1,41 @@ +--- +title: Subgraphs +--- + +## What is a Subgraph? + +A subgraph is a custom, open API that extracts data from a blockchain, processes it, and stores it so it can be easily queried via GraphQL. + +### Subgraph Capabilities + +- **Access Data:** Subgraphs enable the querying and indexing of blockchain data for web3. +- **Build:** Developers can build, deploy, and publish subgraphs to The Graph Network. To get started, check out the subgraph developer [Quick Start](quick-start/). +- **Index & Query:** Once a subgraph is indexed, anyone can query it. Explore and query all subgraphs published to the network in [Graph Explorer](https://thegraph.com/explorer). + +## Inside a Subgraph + +The subgraph manifest, `subgraph.yaml`, defines the smart contracts & network your subgraph will index, the events from these contracts to pay attention to, and how to map event data to entities that Graph Node stores and allows to query. + +The **subgraph definition** consists of the following files: + +- `subgraph.yaml`: Contains the subgraph manifest + +- `schema.graphql`: A GraphQL schema defining the data stored for your subgraph and how to query it via GraphQL + +- `mapping.ts`: [AssemblyScript Mappings](https://github.com/AssemblyScript/assemblyscript) code that translates event data into entities defined in your schema + +To learn more about each of subgraph component, check out [creating a subgraph](/developing/creating-a-subgraph/). + +## Subgraph Development + +1. [Create a subgraph](/developing/creating-a-subgraph/) +2. [Deploy a subgraph](/deploying/deploying-a-subgraph-to-studio/) +3. [Test a subgraph](/deploying/subgraph-studio/#testing-your-subgraph-in-subgraph-studio) +4. [Publish a subgraph](/publishing/publishing-a-subgraph/) +5. [Signal on a subgraph](/publishing/publishing-a-subgraph/#adding-signal-to-your-subgraph) + +## Subgraph Lifecycle + +Here is a general overview of a subgraph’s lifecycle: + +![Subgraph Lifecycle](/img/subgraph-lifecycle.png) diff --git a/website/pages/pl/subgraphs.mdx b/website/pages/pl/subgraphs.mdx new file mode 100644 index 000000000000..27b452211477 --- /dev/null +++ b/website/pages/pl/subgraphs.mdx @@ -0,0 +1,41 @@ +--- +title: Subgraphs +--- + +## What is a Subgraph? + +A subgraph is a custom, open API that extracts data from a blockchain, processes it, and stores it so it can be easily queried via GraphQL. + +### Subgraph Capabilities + +- **Access Data:** Subgraphs enable the querying and indexing of blockchain data for web3. +- **Build:** Developers can build, deploy, and publish subgraphs to The Graph Network. To get started, check out the subgraph developer [Quick Start](quick-start/). +- **Index & Query:** Once a subgraph is indexed, anyone can query it. Explore and query all subgraphs published to the network in [Graph Explorer](https://thegraph.com/explorer). + +## Inside a Subgraph + +The subgraph manifest, `subgraph.yaml`, defines the smart contracts & network your subgraph will index, the events from these contracts to pay attention to, and how to map event data to entities that Graph Node stores and allows to query. + +The **subgraph definition** consists of the following files: + +- `subgraph.yaml`: Contains the subgraph manifest + +- `schema.graphql`: A GraphQL schema defining the data stored for your subgraph and how to query it via GraphQL + +- `mapping.ts`: [AssemblyScript Mappings](https://github.com/AssemblyScript/assemblyscript) code that translates event data into entities defined in your schema + +To learn more about each of subgraph component, check out [creating a subgraph](/developing/creating-a-subgraph/). + +## Subgraph Development + +1. [Create a subgraph](/developing/creating-a-subgraph/) +2. [Deploy a subgraph](/deploying/deploying-a-subgraph-to-studio/) +3. [Test a subgraph](/deploying/subgraph-studio/#testing-your-subgraph-in-subgraph-studio) +4. [Publish a subgraph](/publishing/publishing-a-subgraph/) +5. [Signal on a subgraph](/publishing/publishing-a-subgraph/#adding-signal-to-your-subgraph) + +## Subgraph Lifecycle + +Here is a general overview of a subgraph’s lifecycle: + +![Subgraph Lifecycle](/img/subgraph-lifecycle.png) diff --git a/website/pages/pt/subgraphs.mdx b/website/pages/pt/subgraphs.mdx new file mode 100644 index 000000000000..27b452211477 --- /dev/null +++ b/website/pages/pt/subgraphs.mdx @@ -0,0 +1,41 @@ +--- +title: Subgraphs +--- + +## What is a Subgraph? + +A subgraph is a custom, open API that extracts data from a blockchain, processes it, and stores it so it can be easily queried via GraphQL. + +### Subgraph Capabilities + +- **Access Data:** Subgraphs enable the querying and indexing of blockchain data for web3. +- **Build:** Developers can build, deploy, and publish subgraphs to The Graph Network. To get started, check out the subgraph developer [Quick Start](quick-start/). +- **Index & Query:** Once a subgraph is indexed, anyone can query it. Explore and query all subgraphs published to the network in [Graph Explorer](https://thegraph.com/explorer). + +## Inside a Subgraph + +The subgraph manifest, `subgraph.yaml`, defines the smart contracts & network your subgraph will index, the events from these contracts to pay attention to, and how to map event data to entities that Graph Node stores and allows to query. + +The **subgraph definition** consists of the following files: + +- `subgraph.yaml`: Contains the subgraph manifest + +- `schema.graphql`: A GraphQL schema defining the data stored for your subgraph and how to query it via GraphQL + +- `mapping.ts`: [AssemblyScript Mappings](https://github.com/AssemblyScript/assemblyscript) code that translates event data into entities defined in your schema + +To learn more about each of subgraph component, check out [creating a subgraph](/developing/creating-a-subgraph/). + +## Subgraph Development + +1. [Create a subgraph](/developing/creating-a-subgraph/) +2. [Deploy a subgraph](/deploying/deploying-a-subgraph-to-studio/) +3. [Test a subgraph](/deploying/subgraph-studio/#testing-your-subgraph-in-subgraph-studio) +4. [Publish a subgraph](/publishing/publishing-a-subgraph/) +5. [Signal on a subgraph](/publishing/publishing-a-subgraph/#adding-signal-to-your-subgraph) + +## Subgraph Lifecycle + +Here is a general overview of a subgraph’s lifecycle: + +![Subgraph Lifecycle](/img/subgraph-lifecycle.png) diff --git a/website/pages/ro/subgraphs.mdx b/website/pages/ro/subgraphs.mdx new file mode 100644 index 000000000000..27b452211477 --- /dev/null +++ b/website/pages/ro/subgraphs.mdx @@ -0,0 +1,41 @@ +--- +title: Subgraphs +--- + +## What is a Subgraph? + +A subgraph is a custom, open API that extracts data from a blockchain, processes it, and stores it so it can be easily queried via GraphQL. + +### Subgraph Capabilities + +- **Access Data:** Subgraphs enable the querying and indexing of blockchain data for web3. +- **Build:** Developers can build, deploy, and publish subgraphs to The Graph Network. To get started, check out the subgraph developer [Quick Start](quick-start/). +- **Index & Query:** Once a subgraph is indexed, anyone can query it. Explore and query all subgraphs published to the network in [Graph Explorer](https://thegraph.com/explorer). + +## Inside a Subgraph + +The subgraph manifest, `subgraph.yaml`, defines the smart contracts & network your subgraph will index, the events from these contracts to pay attention to, and how to map event data to entities that Graph Node stores and allows to query. + +The **subgraph definition** consists of the following files: + +- `subgraph.yaml`: Contains the subgraph manifest + +- `schema.graphql`: A GraphQL schema defining the data stored for your subgraph and how to query it via GraphQL + +- `mapping.ts`: [AssemblyScript Mappings](https://github.com/AssemblyScript/assemblyscript) code that translates event data into entities defined in your schema + +To learn more about each of subgraph component, check out [creating a subgraph](/developing/creating-a-subgraph/). + +## Subgraph Development + +1. [Create a subgraph](/developing/creating-a-subgraph/) +2. [Deploy a subgraph](/deploying/deploying-a-subgraph-to-studio/) +3. [Test a subgraph](/deploying/subgraph-studio/#testing-your-subgraph-in-subgraph-studio) +4. [Publish a subgraph](/publishing/publishing-a-subgraph/) +5. [Signal on a subgraph](/publishing/publishing-a-subgraph/#adding-signal-to-your-subgraph) + +## Subgraph Lifecycle + +Here is a general overview of a subgraph’s lifecycle: + +![Subgraph Lifecycle](/img/subgraph-lifecycle.png) diff --git a/website/pages/ru/subgraphs.mdx b/website/pages/ru/subgraphs.mdx new file mode 100644 index 000000000000..27b452211477 --- /dev/null +++ b/website/pages/ru/subgraphs.mdx @@ -0,0 +1,41 @@ +--- +title: Subgraphs +--- + +## What is a Subgraph? + +A subgraph is a custom, open API that extracts data from a blockchain, processes it, and stores it so it can be easily queried via GraphQL. + +### Subgraph Capabilities + +- **Access Data:** Subgraphs enable the querying and indexing of blockchain data for web3. +- **Build:** Developers can build, deploy, and publish subgraphs to The Graph Network. To get started, check out the subgraph developer [Quick Start](quick-start/). +- **Index & Query:** Once a subgraph is indexed, anyone can query it. Explore and query all subgraphs published to the network in [Graph Explorer](https://thegraph.com/explorer). + +## Inside a Subgraph + +The subgraph manifest, `subgraph.yaml`, defines the smart contracts & network your subgraph will index, the events from these contracts to pay attention to, and how to map event data to entities that Graph Node stores and allows to query. + +The **subgraph definition** consists of the following files: + +- `subgraph.yaml`: Contains the subgraph manifest + +- `schema.graphql`: A GraphQL schema defining the data stored for your subgraph and how to query it via GraphQL + +- `mapping.ts`: [AssemblyScript Mappings](https://github.com/AssemblyScript/assemblyscript) code that translates event data into entities defined in your schema + +To learn more about each of subgraph component, check out [creating a subgraph](/developing/creating-a-subgraph/). + +## Subgraph Development + +1. [Create a subgraph](/developing/creating-a-subgraph/) +2. [Deploy a subgraph](/deploying/deploying-a-subgraph-to-studio/) +3. [Test a subgraph](/deploying/subgraph-studio/#testing-your-subgraph-in-subgraph-studio) +4. [Publish a subgraph](/publishing/publishing-a-subgraph/) +5. [Signal on a subgraph](/publishing/publishing-a-subgraph/#adding-signal-to-your-subgraph) + +## Subgraph Lifecycle + +Here is a general overview of a subgraph’s lifecycle: + +![Subgraph Lifecycle](/img/subgraph-lifecycle.png) diff --git a/website/pages/sv/subgraphs.mdx b/website/pages/sv/subgraphs.mdx new file mode 100644 index 000000000000..27b452211477 --- /dev/null +++ b/website/pages/sv/subgraphs.mdx @@ -0,0 +1,41 @@ +--- +title: Subgraphs +--- + +## What is a Subgraph? + +A subgraph is a custom, open API that extracts data from a blockchain, processes it, and stores it so it can be easily queried via GraphQL. + +### Subgraph Capabilities + +- **Access Data:** Subgraphs enable the querying and indexing of blockchain data for web3. +- **Build:** Developers can build, deploy, and publish subgraphs to The Graph Network. To get started, check out the subgraph developer [Quick Start](quick-start/). +- **Index & Query:** Once a subgraph is indexed, anyone can query it. Explore and query all subgraphs published to the network in [Graph Explorer](https://thegraph.com/explorer). + +## Inside a Subgraph + +The subgraph manifest, `subgraph.yaml`, defines the smart contracts & network your subgraph will index, the events from these contracts to pay attention to, and how to map event data to entities that Graph Node stores and allows to query. + +The **subgraph definition** consists of the following files: + +- `subgraph.yaml`: Contains the subgraph manifest + +- `schema.graphql`: A GraphQL schema defining the data stored for your subgraph and how to query it via GraphQL + +- `mapping.ts`: [AssemblyScript Mappings](https://github.com/AssemblyScript/assemblyscript) code that translates event data into entities defined in your schema + +To learn more about each of subgraph component, check out [creating a subgraph](/developing/creating-a-subgraph/). + +## Subgraph Development + +1. [Create a subgraph](/developing/creating-a-subgraph/) +2. [Deploy a subgraph](/deploying/deploying-a-subgraph-to-studio/) +3. [Test a subgraph](/deploying/subgraph-studio/#testing-your-subgraph-in-subgraph-studio) +4. [Publish a subgraph](/publishing/publishing-a-subgraph/) +5. [Signal on a subgraph](/publishing/publishing-a-subgraph/#adding-signal-to-your-subgraph) + +## Subgraph Lifecycle + +Here is a general overview of a subgraph’s lifecycle: + +![Subgraph Lifecycle](/img/subgraph-lifecycle.png) diff --git a/website/pages/tr/subgraphs.mdx b/website/pages/tr/subgraphs.mdx new file mode 100644 index 000000000000..27b452211477 --- /dev/null +++ b/website/pages/tr/subgraphs.mdx @@ -0,0 +1,41 @@ +--- +title: Subgraphs +--- + +## What is a Subgraph? + +A subgraph is a custom, open API that extracts data from a blockchain, processes it, and stores it so it can be easily queried via GraphQL. + +### Subgraph Capabilities + +- **Access Data:** Subgraphs enable the querying and indexing of blockchain data for web3. +- **Build:** Developers can build, deploy, and publish subgraphs to The Graph Network. To get started, check out the subgraph developer [Quick Start](quick-start/). +- **Index & Query:** Once a subgraph is indexed, anyone can query it. Explore and query all subgraphs published to the network in [Graph Explorer](https://thegraph.com/explorer). + +## Inside a Subgraph + +The subgraph manifest, `subgraph.yaml`, defines the smart contracts & network your subgraph will index, the events from these contracts to pay attention to, and how to map event data to entities that Graph Node stores and allows to query. + +The **subgraph definition** consists of the following files: + +- `subgraph.yaml`: Contains the subgraph manifest + +- `schema.graphql`: A GraphQL schema defining the data stored for your subgraph and how to query it via GraphQL + +- `mapping.ts`: [AssemblyScript Mappings](https://github.com/AssemblyScript/assemblyscript) code that translates event data into entities defined in your schema + +To learn more about each of subgraph component, check out [creating a subgraph](/developing/creating-a-subgraph/). + +## Subgraph Development + +1. [Create a subgraph](/developing/creating-a-subgraph/) +2. [Deploy a subgraph](/deploying/deploying-a-subgraph-to-studio/) +3. [Test a subgraph](/deploying/subgraph-studio/#testing-your-subgraph-in-subgraph-studio) +4. [Publish a subgraph](/publishing/publishing-a-subgraph/) +5. [Signal on a subgraph](/publishing/publishing-a-subgraph/#adding-signal-to-your-subgraph) + +## Subgraph Lifecycle + +Here is a general overview of a subgraph’s lifecycle: + +![Subgraph Lifecycle](/img/subgraph-lifecycle.png) diff --git a/website/pages/uk/subgraphs.mdx b/website/pages/uk/subgraphs.mdx new file mode 100644 index 000000000000..27b452211477 --- /dev/null +++ b/website/pages/uk/subgraphs.mdx @@ -0,0 +1,41 @@ +--- +title: Subgraphs +--- + +## What is a Subgraph? + +A subgraph is a custom, open API that extracts data from a blockchain, processes it, and stores it so it can be easily queried via GraphQL. + +### Subgraph Capabilities + +- **Access Data:** Subgraphs enable the querying and indexing of blockchain data for web3. +- **Build:** Developers can build, deploy, and publish subgraphs to The Graph Network. To get started, check out the subgraph developer [Quick Start](quick-start/). +- **Index & Query:** Once a subgraph is indexed, anyone can query it. Explore and query all subgraphs published to the network in [Graph Explorer](https://thegraph.com/explorer). + +## Inside a Subgraph + +The subgraph manifest, `subgraph.yaml`, defines the smart contracts & network your subgraph will index, the events from these contracts to pay attention to, and how to map event data to entities that Graph Node stores and allows to query. + +The **subgraph definition** consists of the following files: + +- `subgraph.yaml`: Contains the subgraph manifest + +- `schema.graphql`: A GraphQL schema defining the data stored for your subgraph and how to query it via GraphQL + +- `mapping.ts`: [AssemblyScript Mappings](https://github.com/AssemblyScript/assemblyscript) code that translates event data into entities defined in your schema + +To learn more about each of subgraph component, check out [creating a subgraph](/developing/creating-a-subgraph/). + +## Subgraph Development + +1. [Create a subgraph](/developing/creating-a-subgraph/) +2. [Deploy a subgraph](/deploying/deploying-a-subgraph-to-studio/) +3. [Test a subgraph](/deploying/subgraph-studio/#testing-your-subgraph-in-subgraph-studio) +4. [Publish a subgraph](/publishing/publishing-a-subgraph/) +5. [Signal on a subgraph](/publishing/publishing-a-subgraph/#adding-signal-to-your-subgraph) + +## Subgraph Lifecycle + +Here is a general overview of a subgraph’s lifecycle: + +![Subgraph Lifecycle](/img/subgraph-lifecycle.png) diff --git a/website/pages/ur/subgraphs.mdx b/website/pages/ur/subgraphs.mdx new file mode 100644 index 000000000000..27b452211477 --- /dev/null +++ b/website/pages/ur/subgraphs.mdx @@ -0,0 +1,41 @@ +--- +title: Subgraphs +--- + +## What is a Subgraph? + +A subgraph is a custom, open API that extracts data from a blockchain, processes it, and stores it so it can be easily queried via GraphQL. + +### Subgraph Capabilities + +- **Access Data:** Subgraphs enable the querying and indexing of blockchain data for web3. +- **Build:** Developers can build, deploy, and publish subgraphs to The Graph Network. To get started, check out the subgraph developer [Quick Start](quick-start/). +- **Index & Query:** Once a subgraph is indexed, anyone can query it. Explore and query all subgraphs published to the network in [Graph Explorer](https://thegraph.com/explorer). + +## Inside a Subgraph + +The subgraph manifest, `subgraph.yaml`, defines the smart contracts & network your subgraph will index, the events from these contracts to pay attention to, and how to map event data to entities that Graph Node stores and allows to query. + +The **subgraph definition** consists of the following files: + +- `subgraph.yaml`: Contains the subgraph manifest + +- `schema.graphql`: A GraphQL schema defining the data stored for your subgraph and how to query it via GraphQL + +- `mapping.ts`: [AssemblyScript Mappings](https://github.com/AssemblyScript/assemblyscript) code that translates event data into entities defined in your schema + +To learn more about each of subgraph component, check out [creating a subgraph](/developing/creating-a-subgraph/). + +## Subgraph Development + +1. [Create a subgraph](/developing/creating-a-subgraph/) +2. [Deploy a subgraph](/deploying/deploying-a-subgraph-to-studio/) +3. [Test a subgraph](/deploying/subgraph-studio/#testing-your-subgraph-in-subgraph-studio) +4. [Publish a subgraph](/publishing/publishing-a-subgraph/) +5. [Signal on a subgraph](/publishing/publishing-a-subgraph/#adding-signal-to-your-subgraph) + +## Subgraph Lifecycle + +Here is a general overview of a subgraph’s lifecycle: + +![Subgraph Lifecycle](/img/subgraph-lifecycle.png) diff --git a/website/pages/vi/subgraphs.mdx b/website/pages/vi/subgraphs.mdx new file mode 100644 index 000000000000..27b452211477 --- /dev/null +++ b/website/pages/vi/subgraphs.mdx @@ -0,0 +1,41 @@ +--- +title: Subgraphs +--- + +## What is a Subgraph? + +A subgraph is a custom, open API that extracts data from a blockchain, processes it, and stores it so it can be easily queried via GraphQL. + +### Subgraph Capabilities + +- **Access Data:** Subgraphs enable the querying and indexing of blockchain data for web3. +- **Build:** Developers can build, deploy, and publish subgraphs to The Graph Network. To get started, check out the subgraph developer [Quick Start](quick-start/). +- **Index & Query:** Once a subgraph is indexed, anyone can query it. Explore and query all subgraphs published to the network in [Graph Explorer](https://thegraph.com/explorer). + +## Inside a Subgraph + +The subgraph manifest, `subgraph.yaml`, defines the smart contracts & network your subgraph will index, the events from these contracts to pay attention to, and how to map event data to entities that Graph Node stores and allows to query. + +The **subgraph definition** consists of the following files: + +- `subgraph.yaml`: Contains the subgraph manifest + +- `schema.graphql`: A GraphQL schema defining the data stored for your subgraph and how to query it via GraphQL + +- `mapping.ts`: [AssemblyScript Mappings](https://github.com/AssemblyScript/assemblyscript) code that translates event data into entities defined in your schema + +To learn more about each of subgraph component, check out [creating a subgraph](/developing/creating-a-subgraph/). + +## Subgraph Development + +1. [Create a subgraph](/developing/creating-a-subgraph/) +2. [Deploy a subgraph](/deploying/deploying-a-subgraph-to-studio/) +3. [Test a subgraph](/deploying/subgraph-studio/#testing-your-subgraph-in-subgraph-studio) +4. [Publish a subgraph](/publishing/publishing-a-subgraph/) +5. [Signal on a subgraph](/publishing/publishing-a-subgraph/#adding-signal-to-your-subgraph) + +## Subgraph Lifecycle + +Here is a general overview of a subgraph’s lifecycle: + +![Subgraph Lifecycle](/img/subgraph-lifecycle.png) diff --git a/website/pages/yo/subgraphs.mdx b/website/pages/yo/subgraphs.mdx new file mode 100644 index 000000000000..27b452211477 --- /dev/null +++ b/website/pages/yo/subgraphs.mdx @@ -0,0 +1,41 @@ +--- +title: Subgraphs +--- + +## What is a Subgraph? + +A subgraph is a custom, open API that extracts data from a blockchain, processes it, and stores it so it can be easily queried via GraphQL. + +### Subgraph Capabilities + +- **Access Data:** Subgraphs enable the querying and indexing of blockchain data for web3. +- **Build:** Developers can build, deploy, and publish subgraphs to The Graph Network. To get started, check out the subgraph developer [Quick Start](quick-start/). +- **Index & Query:** Once a subgraph is indexed, anyone can query it. Explore and query all subgraphs published to the network in [Graph Explorer](https://thegraph.com/explorer). + +## Inside a Subgraph + +The subgraph manifest, `subgraph.yaml`, defines the smart contracts & network your subgraph will index, the events from these contracts to pay attention to, and how to map event data to entities that Graph Node stores and allows to query. + +The **subgraph definition** consists of the following files: + +- `subgraph.yaml`: Contains the subgraph manifest + +- `schema.graphql`: A GraphQL schema defining the data stored for your subgraph and how to query it via GraphQL + +- `mapping.ts`: [AssemblyScript Mappings](https://github.com/AssemblyScript/assemblyscript) code that translates event data into entities defined in your schema + +To learn more about each of subgraph component, check out [creating a subgraph](/developing/creating-a-subgraph/). + +## Subgraph Development + +1. [Create a subgraph](/developing/creating-a-subgraph/) +2. [Deploy a subgraph](/deploying/deploying-a-subgraph-to-studio/) +3. [Test a subgraph](/deploying/subgraph-studio/#testing-your-subgraph-in-subgraph-studio) +4. [Publish a subgraph](/publishing/publishing-a-subgraph/) +5. [Signal on a subgraph](/publishing/publishing-a-subgraph/#adding-signal-to-your-subgraph) + +## Subgraph Lifecycle + +Here is a general overview of a subgraph’s lifecycle: + +![Subgraph Lifecycle](/img/subgraph-lifecycle.png) diff --git a/website/pages/zh/subgraphs.mdx b/website/pages/zh/subgraphs.mdx new file mode 100644 index 000000000000..27b452211477 --- /dev/null +++ b/website/pages/zh/subgraphs.mdx @@ -0,0 +1,41 @@ +--- +title: Subgraphs +--- + +## What is a Subgraph? + +A subgraph is a custom, open API that extracts data from a blockchain, processes it, and stores it so it can be easily queried via GraphQL. + +### Subgraph Capabilities + +- **Access Data:** Subgraphs enable the querying and indexing of blockchain data for web3. +- **Build:** Developers can build, deploy, and publish subgraphs to The Graph Network. To get started, check out the subgraph developer [Quick Start](quick-start/). +- **Index & Query:** Once a subgraph is indexed, anyone can query it. Explore and query all subgraphs published to the network in [Graph Explorer](https://thegraph.com/explorer). + +## Inside a Subgraph + +The subgraph manifest, `subgraph.yaml`, defines the smart contracts & network your subgraph will index, the events from these contracts to pay attention to, and how to map event data to entities that Graph Node stores and allows to query. + +The **subgraph definition** consists of the following files: + +- `subgraph.yaml`: Contains the subgraph manifest + +- `schema.graphql`: A GraphQL schema defining the data stored for your subgraph and how to query it via GraphQL + +- `mapping.ts`: [AssemblyScript Mappings](https://github.com/AssemblyScript/assemblyscript) code that translates event data into entities defined in your schema + +To learn more about each of subgraph component, check out [creating a subgraph](/developing/creating-a-subgraph/). + +## Subgraph Development + +1. [Create a subgraph](/developing/creating-a-subgraph/) +2. [Deploy a subgraph](/deploying/deploying-a-subgraph-to-studio/) +3. [Test a subgraph](/deploying/subgraph-studio/#testing-your-subgraph-in-subgraph-studio) +4. [Publish a subgraph](/publishing/publishing-a-subgraph/) +5. [Signal on a subgraph](/publishing/publishing-a-subgraph/#adding-signal-to-your-subgraph) + +## Subgraph Lifecycle + +Here is a general overview of a subgraph’s lifecycle: + +![Subgraph Lifecycle](/img/subgraph-lifecycle.png)