From 961cc1faf6e05330f13c7aff2b6688f1ac3f94ae Mon Sep 17 00:00:00 2001 From: Jerry Okolo Date: Fri, 14 Jun 2024 17:37:42 +0100 Subject: [PATCH 1/6] Resolved merge conflict in querying-the-graph.mdx --- .../en/deploying/subgraph-studio-faqs.mdx | 20 +++++++++++++++++-- .../pages/en/querying/querying-the-graph.mdx | 16 +++++++++++++++ 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/website/pages/en/deploying/subgraph-studio-faqs.mdx b/website/pages/en/deploying/subgraph-studio-faqs.mdx index 8761f7a31bf6..ffea1ad7f725 100644 --- a/website/pages/en/deploying/subgraph-studio-faqs.mdx +++ b/website/pages/en/deploying/subgraph-studio-faqs.mdx @@ -18,13 +18,29 @@ Yes! You can create multiple API Keys to use in different projects. Check out th After creating an API Key, in the Security section, you can define the domains that can query a specific API Key. -## 5. Can I transfer my subgraph to another owner? +## 5. How do I add a bearer token ? + +A bearer token can be added to the authorization header of your API request. + +Example: +``` +Update the query path: +```bash +../api/${api_key}/deployments/... -> ../api/deployments/... +``` +Add the authorization header: +```bash +authorization: Bearer ${api_key} +``` +Replace ${api_key} with your actual API key. + +## 6. Can I transfer my subgraph to another owner? 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'. Note that you will no longer be able to see or edit the subgraph in Studio once it has been transferred. -## 6. How do I find query URLs for subgraphs if I’m not the developer of the subgraph I want to use? +## 7. How do I find query URLs for subgraphs if I’m not the developer of the subgraph I want to use? 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 `` placeholder with the API key you wish to leverage in Subgraph Studio. diff --git a/website/pages/en/querying/querying-the-graph.mdx b/website/pages/en/querying/querying-the-graph.mdx index a573683573c5..cd2297a5c256 100644 --- a/website/pages/en/querying/querying-the-graph.mdx +++ b/website/pages/en/querying/querying-the-graph.mdx @@ -12,7 +12,23 @@ Each subgraph published to The Graph Network has a unique query URL in Graph Exp ![Query Subgraph Pane](/img/query-subgraph-pane.png) +<<<<<<< HEAD Learn more about querying from an application [here](/querying/querying-from-an-application). +======= +As you can notice, this query URL must use a unique API key. A bearer token can also be used to authenticate the query. + +Update the query path: +```bash +../api/${api_key}/deployments/... -> ../api/deployments/... +``` +Add the authorization header: +```bash +authorization: Bearer ${api_key} +``` +Replace ${api_key} with your actual API key. + +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). +>>>>>>> fe7713d0 (Add instructions for adding bearer token to API requests) 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). From 55052f3cd3b0542c7c9c068a1453f2825953a503 Mon Sep 17 00:00:00 2001 From: Jerry Okolo <73024324+itsjerryokolo@users.noreply.github.com> Date: Fri, 14 Jun 2024 16:50:11 +0100 Subject: [PATCH 2/6] Update website/pages/en/querying/querying-the-graph.mdx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Benoît Rouleau --- website/pages/en/querying/querying-the-graph.mdx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/website/pages/en/querying/querying-the-graph.mdx b/website/pages/en/querying/querying-the-graph.mdx index cd2297a5c256..edd59861de0f 100644 --- a/website/pages/en/querying/querying-the-graph.mdx +++ b/website/pages/en/querying/querying-the-graph.mdx @@ -18,14 +18,18 @@ Learn more about querying from an application [here](/querying/querying-from-an- As you can notice, this query URL must use a unique API key. A bearer token can also be used to authenticate the query. Update the query path: + ```bash ../api/${api_key}/deployments/... -> ../api/deployments/... ``` + Add the authorization header: + ```bash authorization: Bearer ${api_key} ``` -Replace ${api_key} with your actual API key. + +Replace `${api_key}` with your actual API key. 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). >>>>>>> fe7713d0 (Add instructions for adding bearer token to API requests) From ae95bd6df8716adeb659dcb2d58623fb6b2c67c4 Mon Sep 17 00:00:00 2001 From: Jerry Okolo <73024324+itsjerryokolo@users.noreply.github.com> Date: Fri, 14 Jun 2024 16:50:17 +0100 Subject: [PATCH 3/6] Update website/pages/en/deploying/subgraph-studio-faqs.mdx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Benoît Rouleau --- website/pages/en/deploying/subgraph-studio-faqs.mdx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/website/pages/en/deploying/subgraph-studio-faqs.mdx b/website/pages/en/deploying/subgraph-studio-faqs.mdx index ffea1ad7f725..dc3bfc3c097d 100644 --- a/website/pages/en/deploying/subgraph-studio-faqs.mdx +++ b/website/pages/en/deploying/subgraph-studio-faqs.mdx @@ -25,14 +25,18 @@ A bearer token can be added to the authorization header of your API request. Example: ``` Update the query path: + ```bash ../api/${api_key}/deployments/... -> ../api/deployments/... ``` + Add the authorization header: + ```bash authorization: Bearer ${api_key} ``` -Replace ${api_key} with your actual API key. + +Replace `${api_key}` with your actual API key. ## 6. Can I transfer my subgraph to another owner? From f73f111ca14eb748eea8f44d65e8efa387b27337 Mon Sep 17 00:00:00 2001 From: Jerry Okolo <73024324+itsjerryokolo@users.noreply.github.com> Date: Fri, 14 Jun 2024 16:58:34 +0100 Subject: [PATCH 4/6] Update website/pages/en/deploying/subgraph-studio-faqs.mdx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Benoît Rouleau --- website/pages/en/deploying/subgraph-studio-faqs.mdx | 1 - 1 file changed, 1 deletion(-) diff --git a/website/pages/en/deploying/subgraph-studio-faqs.mdx b/website/pages/en/deploying/subgraph-studio-faqs.mdx index dc3bfc3c097d..8d4a6e7defc4 100644 --- a/website/pages/en/deploying/subgraph-studio-faqs.mdx +++ b/website/pages/en/deploying/subgraph-studio-faqs.mdx @@ -23,7 +23,6 @@ After creating an API Key, in the Security section, you can define the domains t A bearer token can be added to the authorization header of your API request. Example: -``` Update the query path: ```bash From 41ab06cd33602b186ded8976642633be428cab44 Mon Sep 17 00:00:00 2001 From: Jerry Okolo Date: Mon, 17 Jun 2024 11:05:02 +0100 Subject: [PATCH 5/6] Update query URL and authorization header in querying-the-graph.mdx --- website/pages/en/querying/querying-the-graph.mdx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/website/pages/en/querying/querying-the-graph.mdx b/website/pages/en/querying/querying-the-graph.mdx index edd59861de0f..ce4f36da5a09 100644 --- a/website/pages/en/querying/querying-the-graph.mdx +++ b/website/pages/en/querying/querying-the-graph.mdx @@ -12,27 +12,20 @@ Each subgraph published to The Graph Network has a unique query URL in Graph Exp ![Query Subgraph Pane](/img/query-subgraph-pane.png) -<<<<<<< HEAD Learn more about querying from an application [here](/querying/querying-from-an-application). -======= As you can notice, this query URL must use a unique API key. A bearer token can also be used to authenticate the query. Update the query path: - ```bash ../api/${api_key}/deployments/... -> ../api/deployments/... ``` - Add the authorization header: - ```bash authorization: Bearer ${api_key} ``` - -Replace `${api_key}` with your actual API key. +Replace ${api_key} with your actual API key. 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). ->>>>>>> fe7713d0 (Add instructions for adding bearer token to API requests) 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). From 1c51e24eef663b1b11ae82a17096833b708d614b Mon Sep 17 00:00:00 2001 From: Jerry Okolo Date: Mon, 17 Jun 2024 11:14:55 +0100 Subject: [PATCH 6/6] Update query URL and authorization header in querying-the-graph.mdx --- website/pages/en/querying/querying-the-graph.mdx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/website/pages/en/querying/querying-the-graph.mdx b/website/pages/en/querying/querying-the-graph.mdx index ce4f36da5a09..b21114e1155c 100644 --- a/website/pages/en/querying/querying-the-graph.mdx +++ b/website/pages/en/querying/querying-the-graph.mdx @@ -25,8 +25,6 @@ authorization: Bearer ${api_key} ``` Replace ${api_key} with your actual API key. -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). - -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). + 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). Subgraph Studio users start on a Free Plan, which allows them to make 100,000 queries per month. Additional queries are available on the Growth Plan, which offers usage based pricing for additional queries, payable by credit card, or GRT on Arbitrum. You can learn more about billing [here](/billing).