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
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,8 +23,6 @@ GraphQL serves as the query language for retrieving data from Subgraphs. This re
23
23
24
24
[GraphQL](https://graphql.org/learn/) is a query language for APIs and a runtime for executing those queries with your existing data. The Graph uses GraphQL to query Subgraphs.
25
25
26
-
To understand the larger role that GraphQL plays, review [developing](/subgraphs/developing/introduction/) and [creating a Subgraph](/developing/creating-a-subgraph/).
27
-
28
26
## Queries with GraphQL
29
27
30
28
In your Subgraph schema you define types called `Entities`. For each `Entity` type, `entity` and `entities` fields will be generated on the top-level `Query` type.
@@ -59,7 +57,7 @@ Query all `Token` entities:
59
57
60
58
### Sorting
61
59
62
-
When querying a collection, you may:
60
+
When querying a collection, you can:
63
61
64
62
- Use the `orderBy` parameter to sort by a specific attribute.
65
63
- Use the `orderDirection` to specify the sort direction, `asc` for ascending or `desc` for descending.
@@ -116,7 +114,7 @@ Query the first 10 tokens:
116
114
}
117
115
```
118
116
119
-
To query for groups of entities in the middle of a collection, the `skip` parameter may be used in conjunction with the `first` parameter to skip a specified number of entities starting at the beginning of the collection.
117
+
To query for groups of entities in the middle of a collection, the `skip` parameter can be used in conjunction with the `first` parameter to skip a specified number of entities starting at the beginning of the collection.
0 commit comments