File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
website/src/pages/en/subgraphs/querying Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -32,19 +32,17 @@ A new window will pop up:
32
32
33
33
When you query The Graph from your dapp, you can use your API key in two ways:
34
34
35
- 1 . In the URL (Optimal Method for Subgraph Queries ):
35
+ 1 . In the URL (optimal method for Subgraph queries ):
36
36
37
- Append the API Key directly to your query endpoint:
37
+ Include the API Key directly to your query endpoint:
38
38
39
39
```
40
40
https://gateway.thegraph.com/api/<YOUR_API_KEY>/subgraphs/id/<SUBGRAPH_ID>
41
41
```
42
42
43
- > [ !NOTE ] This allows you to use various GraphQL client libraries to query Subgraphs and populate your application with indexed data.
43
+ 2 . As a bearer Token:
44
44
45
- 2 . As a Bearer Token:
46
-
47
- Include your API Key in the request header for added security:
45
+ Include your API Key in the ` Authorization ` request header for added security:
48
46
49
47
```
50
48
Authorization: Bearer <YOUR_API_KEY>
You can’t perform that action at this time.
0 commit comments