Skip to content

Commit 5f33cb8

Browse files
Edits
1 parent bfe7052 commit 5f33cb8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

website/src/pages/en/subgraphs/querying/graphql-api.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ The Graph uses GraphQL to query Subgraphs.
2828

2929
GraphQL queries in The Graph target entities defined in the Subgraph schema. Each `Entity` type generates corresponding `entity` and `entities` fields on the root `Query` type.
3030

31-
Note: The `query` keyword is not required at the top level of GraphQL queries.
31+
> Note: The `query` keyword is not required at the top level of GraphQL queries.
3232
3333
### Single Entity Queries
3434

35-
Query format for a single `Token` entity:
35+
Query for a single `Token` entity:
3636

3737
```graphql
3838
{
@@ -43,7 +43,7 @@ Query format for a single `Token` entity:
4343
}
4444
```
4545

46-
Note: Single entity queries require the `id` parameter as a string.
46+
> Note: Single entity queries require the `id` parameter as a string.
4747
4848
### Collection Queries
4949

@@ -89,7 +89,7 @@ Collection queries support the following sort parameters:
8989
}
9090
```
9191

92-
Note: Nested sorting supports one-level-deep `String` or `ID` types on `@entity` and `@derivedFrom` fields.
92+
> Note: Nested sorting supports one-level-deep `String` or `ID` types on `@entity` and `@derivedFrom` fields.
9393
9494
### Pagination
9595

@@ -207,7 +207,7 @@ The following example filters for challenges with `outcome` `succeeded` and `num
207207
}
208208
```
209209

210-
**Syntactic sugar:** You can simplify the above query by removing the `and` operator by passing a sub-expression separated by commas.
210+
**Syntactic sugar:** You can simplify the above query by removing the `and` operator and by passing a sub-expression separated by commas.
211211

212212
```graphql
213213
{
@@ -366,7 +366,7 @@ Metadata fields:
366366
- `block`: Latest block information
367367
- `hasIndexingErrors`: Boolean indicating past indexing errors
368368

369-
> **Note**: When writing queries, it is important to consider the performance impact of using the `or` operator. While `or` can be a useful tool for broadening search results, it can also have significant costs. One of the main issues with `or` is that it can cause queries to slow down. This is because `or` requires the database to scan through multiple indexes, which can be a time-consuming process. To avoid these issues, it is recommended that developers use `and` operators instead of `or` whenever possible. This allows for more precise filtering and can lead to faster, more accurate queries.
369+
> Note: When writing queries, it is important to consider the performance impact of using the `or` operator. While `or` can be a useful tool for broadening search results, it can also have significant costs. One of the main issues with `or` is that it can cause queries to slow down. This is because `or` requires the database to scan through multiple indexes, which can be a time-consuming process. To avoid these issues, it is recommended that developers use `and` operators instead of `or` whenever possible. This allows for more precise filtering and can lead to faster, more accurate queries.
370370
371371
### GraphQL Filter Operators Reference
372372

0 commit comments

Comments
 (0)