diff --git a/website/src/pages/en/subgraphs/explorer.mdx b/website/src/pages/en/subgraphs/explorer.mdx index ddb6ad1b39b6..059016cf1bf2 100644 --- a/website/src/pages/en/subgraphs/explorer.mdx +++ b/website/src/pages/en/subgraphs/explorer.mdx @@ -116,7 +116,7 @@ Curators analyze Subgraphs to identify which Subgraphs are of the highest qualit - By depositing GRT, Curators mint curation shares of a Subgraph. As a result, they can earn a portion of the query fees generated by the Subgraph they have signaled on. - The bonding curve incentivizes Curators to curate the highest quality data sources. -In the The Curator table listed below you can see: +In the Curators table listed below you can see: - The date the Curator started curating - The number of GRT that was deposited diff --git a/website/src/pages/en/subgraphs/querying/best-practices.mdx b/website/src/pages/en/subgraphs/querying/best-practices.mdx index ec7d4070c18d..f10b57eb4624 100644 --- a/website/src/pages/en/subgraphs/querying/best-practices.mdx +++ b/website/src/pages/en/subgraphs/querying/best-practices.mdx @@ -154,7 +154,7 @@ const result = await execute(query, { Static strings have several **key advantages**: - Queries are easier to read, manage, and debug. -- Variable sanitization is handled by the GraphQL server The GraphQL. +- Variable sanitization is handled by the GraphQL server. - Variables can be cached at the server level. - Queries can be statically analyzed by tools (see [GraphQL Essential Tools](/subgraphs/querying/best-practices/#graphql-essential-tools-guides)). @@ -362,9 +362,9 @@ When using the types generation tool, the above query will generate a proper `De ## GraphQL Fragment Guidelines -### Do's and Don'ts for Fragments +### Dos and Don'ts for Fragments -1. Fragments cannot be based on a non-applicable types (types without fields). +1. Fragments cannot be based on non-applicable types (types without fields). 2. `BigInt` cannot be used as a fragment's base because it's a **scalar** (native "plain" type). Example: diff --git a/website/src/pages/en/subgraphs/querying/graph-client/README.md b/website/src/pages/en/subgraphs/querying/graph-client/README.md index 416cadc13c6f..c6dd72b133d7 100644 --- a/website/src/pages/en/subgraphs/querying/graph-client/README.md +++ b/website/src/pages/en/subgraphs/querying/graph-client/README.md @@ -4,7 +4,7 @@ This repo is the home for [The Graph](https://thegraph.com) consumer-side tools ## Background -The tools provided in this repo are intended to enrich and extend the DX, and add the additional layer required for dApps in order to implement distributed applications. +The tools provided in this repo are intended to enrich and extend the DX, and add the additional layer required for dApps to implement distributed applications. Developers who consume data from [The Graph](https://thegraph.com) GraphQL API often need peripherals for making data consumption easier, and also tools that allow using multiple indexers at the same time. @@ -12,7 +12,7 @@ Developers who consume data from [The Graph](https://thegraph.com) GraphQL API o This library is intended to simplify the network aspect of data consumption for dApps. The tools provided within this repository are intended to run at build time, in order to make execution faster and performant at runtime. -> The tools provided in this repo can be used as standalone, but you can also use it with any existing GraphQL Client! +> The tools provided in this repo can be used as standalones, but you can also use them with any existing GraphQL Client! | Status | Feature | Notes | | :----: | ---------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | @@ -67,7 +67,7 @@ graphclient build > Note: you need to run this with `yarn` prefix, or add that as a script in your `package.json`. -This should produce a ready-to-use standalone `execute` function, that you can use for running your application GraphQL operations, you should have an output similar to the following: +This should produce a ready-to-use standalone `execute` function that you can use for running your application GraphQL operations. You should have an output similar to the following: ```sh GraphClient: Cleaning existing artifacts @@ -80,7 +80,7 @@ GraphClient: Reading the configuration 🕸️: Done! => .graphclient ``` -Now, the `.graphclient` artifact is generated for you, and you can import it directly from your code, and run your queries: +Now that the `.graphclient` artifact is generated for you, you can import it directly from your code, and run your queries: ```ts import { execute } from '../.graphclient' @@ -449,7 +449,7 @@ sources: endpoint: https://api.thegraph.com/subgraphs/name/graphprotocol/compound-v2 ``` -As long as there a no conflicts across the composed schemas, you can compose it, and then run a single query to both Subgraphs: +As long as there are no conflicts across the composed schemas, you can compose it, and then run a single query to both Subgraphs: ```graphql query myQuery { @@ -482,7 +482,7 @@ For advanced use-cases with composition, please refer to the following resources If your project is written in TypeScript, you can leverage the power of [`TypedDocumentNode`](https://the-guild.dev/blog/typed-document-node) and have a fully-typed GraphQL client experience. -The standalone mode of The GraphQL, and popular GraphQL client libraries like Apollo-Client and urql has built-in support for `TypedDocumentNode`! +The standalone mode of The GraphQL, and popular GraphQL client libraries like Apollo-Client and urql have built-in support for `TypedDocumentNode`! The Graph Client CLI comes with a ready-to-use configuration for [GraphQL Code Generator](https://graphql-code-generator.com), and it can generate `TypedDocumentNode` based on your GraphQL operations. @@ -530,7 +530,7 @@ This is helpful since you can implement custom code as part of your GraphQL sche > This document explains how to add custom mutations, but in fact you can add any GraphQL operation (query/mutation/subscriptions). See [Extending the unified schema article](https://graphql-mesh.com/docs/guides/extending-unified-schema) for more information about this feature. -To get started, define a `additionalTypeDefs` section in your config file: +To get started, define an `additionalTypeDefs` section in your config file: ```yaml additionalTypeDefs: |