Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion website/src/pages/en/subgraphs/explorer.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions website/src/pages/en/subgraphs/querying/best-practices.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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)).

Expand Down Expand Up @@ -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:
Expand Down
14 changes: 7 additions & 7 deletions website/src/pages/en/subgraphs/querying/graph-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ 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.

## Features and Goals

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 |
| :----: | ---------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
Expand Down Expand Up @@ -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
Expand All @@ -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'
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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.

Expand Down Expand Up @@ -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: |
Expand Down