Skip to content

Commit 9b416dc

Browse files
committed
Resolved merge conflict in querying-the-graph.mdx
1 parent c99f2df commit 9b416dc

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed

website/pages/en/deploying/subgraph-studio-faqs.mdx

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,29 @@ Yes! You can create multiple API Keys to use in different projects. Check out th
1818

1919
After creating an API Key, in the Security section, you can define the domains that can query a specific API Key.
2020

21-
## 5. Can I transfer my subgraph to another owner?
21+
## 5. How do I add a bearer token ?
22+
23+
A bearer token can be added to the authorization header of your API request.
24+
25+
Example:
26+
```
27+
Update the query path:
28+
```bash
29+
../api/${api_key}/deployments/... -> ../api/deployments/...
30+
```
31+
Add the authorization header:
32+
```bash
33+
authorization: Bearer ${api_key}
34+
```
35+
Replace ${api_key} with your actual API key.
36+
37+
## 6. Can I transfer my subgraph to another owner?
2238

2339
Yes, subgraphs that have been published to Arbitrum One can be transferred to a new wallet or a Multisig. You can do so by clicking the three dots next to the 'Publish' button on the subgraph's details page and selecting 'Transfer ownership'.
2440

2541
Note that you will no longer be able to see or edit the subgraph in Studio once it has been transferred.
2642

27-
## 6. How do I find query URLs for subgraphs if I’m not the developer of the subgraph I want to use?
43+
## 7. How do I find query URLs for subgraphs if I’m not the developer of the subgraph I want to use?
2844

2945
You can find the query URL of each subgraph in the Subgraph Details section of Graph Explorer. When you click on the “Query” button, you will be directed to a pane wherein you can view the query URL of the subgraph you’re interested in. You can then replace the `<api_key>` placeholder with the API key you wish to leverage in Subgraph Studio.
3046

website/pages/en/querying/querying-the-graph.mdx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,23 @@ Each subgraph published to The Graph Network has a unique query URL in Graph Exp
1212

1313
![Query Subgraph Pane](/img/query-subgraph-pane.png)
1414

15+
<<<<<<< HEAD
1516
Learn more about querying from an application [here](/querying/querying-from-an-application).
17+
=======
18+
As you can notice, this query URL must use a unique API key. A bearer token can also be used to authenticate the query.
19+
20+
Update the query path:
21+
```bash
22+
../api/${api_key}/deployments/... -> ../api/deployments/...
23+
```
24+
Add the authorization header:
25+
```bash
26+
authorization: Bearer ${api_key}
27+
```
28+
Replace ${api_key} with your actual API key.
29+
30+
You can create and manage your API keys in the [Subgraph Studio](https://thegraph.com/studio) in the "API Keys" section. Learn more about how to use Subgraph Studio [here](/deploying/subgraph-studio).
31+
>>>>>>> fe7713d0 (Add instructions for adding bearer token to API requests)
1632

1733
As you can notice, this query URL must use a unique API key. You can create and manage your API keys in [Subgraph Studio](https://thegraph.com/studio), in the "API Keys" section. Learn more about how to use Subgraph Studio [here](/deploying/subgraph-studio).
1834

0 commit comments

Comments
 (0)