Skip to content

Commit b3c56bb

Browse files
Fixing errors
1 parent 474bf3a commit b3c56bb

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

website/pages/en/subgraphs/cookbook/polymarket.mdx

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@ You can see an interactive query playground on the [Polymarket subgraph’s page
1010

1111
![Polymarket Playground](/img/Polymarket-playground.png)
1212

13-
1413
## How to use the Visual Query Editor
1514

16-
You can use the GraphiQL Explorer to compose your GraphQL queries by clicking on the fields you want.
15+
You can use the GraphiQL Explorer to compose your GraphQL queries by clicking on the fields you want.
1716

1817
### Example Query: Get the top 5 highest payouts from Polymarket
1918

@@ -75,7 +74,7 @@ The schema for this subgraph is defined [here in Polymarket’s GitHub](https://
7574

7675
### Polymarket Subgraph Endpoint
7776

78-
https://gateway.thegraph.com/api/{api-key}/subgraphs/id/Bx1W4S7kDVxs9gC3s2G6DS8kdNBJNVhMviCtin2DiBp
77+
https://gateway.thegraph.com/api/{api-key}/subgraphs/id/Bx1W4S7kDVxs9gC3s2G6DS8kdNBJNVhMviCtin2DiBp
7978

8079
The Polymarket Subgraph endpoint is available on [Graph Explorer](https://thegraph.com/explorer).
8180

@@ -99,7 +98,7 @@ You can use this API key on any subgraph in [Graph Explorer](https://thegraph.co
9998

10099
## How to Query with the API
101100

102-
You can pass any GraphQL query to the Polymarket endpoint and receive data in json format.
101+
You can pass any GraphQL query to the Polymarket endpoint and receive data in json format.
103102

104103
This following code example will return the exact same output as above.
105104

@@ -140,8 +139,8 @@ axios(graphQLRequest)
140139
```
141140

142141
## About The Graph
143-
144-
The Graph is a decentralized protocol that enables seamless querying and indexing of blockchain data. It simplifies the complex process of querying blockchain data through the use of subgraphs (open APIs).
142+
143+
The Graph is a decentralized protocol that enables seamless querying and indexing of blockchain data. It simplifies the complex process of querying blockchain data through the use of subgraphs (open APIs).
145144

146145
Query data easier and faster with The Graph.
147146

@@ -158,5 +157,3 @@ Benefits of Using The Graph
158157
For more information about querying data from your subgraph, read more [here](/subgraphs/querying/introduction/).
159158

160159
To explore all the ways you can optimize & customize your subgraph for a better performance, read more about [creating a subgraph here](/developing/creating-a-subgraph/).
161-
162-

0 commit comments

Comments
 (0)