You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/src/pages/en/subgraphs/querying/graphql-api.mdx
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,11 +28,11 @@ The Graph uses GraphQL to query Subgraphs.
28
28
29
29
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.
30
30
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.
32
32
33
33
### Single Entity Queries
34
34
35
-
Query format for a single `Token` entity:
35
+
Query for a single `Token` entity:
36
36
37
37
```graphql
38
38
{
@@ -43,7 +43,7 @@ Query format for a single `Token` entity:
43
43
}
44
44
```
45
45
46
-
Note: Single entity queries require the `id` parameter as a string.
46
+
> Note: Single entity queries require the `id` parameter as a string.
47
47
48
48
### Collection Queries
49
49
@@ -89,7 +89,7 @@ Collection queries support the following sort parameters:
89
89
}
90
90
```
91
91
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.
93
93
94
94
### Pagination
95
95
@@ -207,7 +207,7 @@ The following example filters for challenges with `outcome` `succeeded` and `num
207
207
}
208
208
```
209
209
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.
211
211
212
212
```graphql
213
213
{
@@ -366,7 +366,7 @@ Metadata fields:
366
366
-`block`: Latest block information
367
367
-`hasIndexingErrors`: Boolean indicating past indexing errors
368
368
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.
0 commit comments