Skip to content

Commit

Permalink
New translations define-subgraph-hosted.mdx (Spanish)
Browse files Browse the repository at this point in the history
  • Loading branch information
benface committed Jan 28, 2022
1 parent bdd4d1f commit 70f9eac
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions pages/es/developer/define-subgraph-hosted.mdx
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
---
title: Define a Subgraph
title: Definir un Subgrafo
---

A subgraph defines which data The Graph will index from Ethereum, and how it will store it. Once deployed, it will form a part of a global graph of blockchain data.
Un subgrafo define los datos que The Graph indexará de Ethereum, y cómo los almacenará. Una vez desplegado, formará parte de un gráfico global de datos de la blockchain.

![Define a Subgraph](/img/define-subgraph.png)
![Definir un Subgrafo](/img/define-subgraph.png)

The subgraph definition consists of a few files:
La definición del subgrafo consta de unos cuantos archivos:

- `subgraph.yaml`: a YAML file containing the subgraph manifest
- `subgraph.yaml`: un archivo YAML que contiene el manifiesto del subgrafo

- `schema.graphql`: a GraphQL schema that defines what data is stored for your subgraph, and how to query it via GraphQL
- `schema.graphql`: un esquema GraphQL que define qué datos se almacenan para su subgrafo, y cómo consultarlos a través de GraphQL

- `AssemblyScript Mappings`: [AssemblyScript](https://github.com/AssemblyScript/assemblyscript) code that translates from the event data to the entities defined in your schema (e.g. `mapping.ts` in this tutorial)
- `AssemblyScript Mappings`: [AssemblyScript](https://github.com/AssemblyScript/assemblyscript) codigo que traduce de los datos del evento a las entidades definidas en su esquema (por ejemplo `mapping.ts` en este tutorial)

Before you go into detail about the contents of the manifest file, you need to install the [Graph CLI](https://github.com/graphprotocol/graph-cli) which you will need to build and deploy a subgraph.
Antes de entrar en detalles sobre el contenido del archivo de manifiesto, es necesario instalar el [Graph CLI](https://github.com/graphprotocol/graph-cli) que necesitarás para construir y desplegar un subgrafo.

## Install the Graph CLI
## Instalar The Graph CLI

The Graph CLI is written in JavaScript, and you will need to install either `yarn` or `npm` to use it; it is assumed that you have yarn in what follows.
The Graph CLI está escrito en JavaScript, y tendrás que instalar `yarn` o `npm` para utilizarlo; se supone que tienes yarn en lo que sigue.

Once you have `yarn`, install the Graph CLI by running
Una vez que tengas `yarn`, instala The Graph CLI ejecutando

**Install with yarn:**
**Instalar con yarn:**

```bash
yarn global add @graphprotocol/graph-cli
```

**Install with npm:**
**Instalar con npm:**

```bash
npm install -g @graphprotocol/graph-cli
Expand Down

0 comments on commit 70f9eac

Please sign in to comment.