Skip to content

Commit

Permalink
adding structure
Browse files Browse the repository at this point in the history
  • Loading branch information
idalithb committed Jan 10, 2025
1 parent fe24672 commit 2bca911
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions website/pages/en/subgraphs/querying/introduction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,30 @@
title: Querying The Graph
---

When a subgraph is published to The Graph Network, you can visit its subgraph details page on [Graph Explorer](https://thegraph.com/explorer) and use the "query" tab to explore the deployed GraphQL API for the subgraph, issuing queries and viewing the schema.
To start querying right away, visit [The Graph Explorer](https://thegraph.com/explorer).

> Please see the [Query API](/subgraphs/querying/graphql-api/) for a complete reference on how to query the subgraph's entities. You can learn about GraphQL querying best practices [here](/subgraphs/querying/best-practices/)
## Overview

> Note: If you encounter 405 errors with a GET request to the Graph Explorer URL, please switch to a POST request instead.
When a subgraph is published to The Graph Network, you can visit its subgraph details page on [Graph Explorer](https://thegraph.com/explorer) and use the "query" tab to explore the deployed GraphQL API for each subgraph.

## Specifics

Each subgraph published to The Graph Network has a unique query URL in Graph Explorer for making direct queries that you can find by navigating to the subgraph details page and clicking on the "Query" button on the top right corner.
Each subgraph published to The Graph Network has a unique query URL in [Graph Explorer](https://thegraph.com/explorer) to make direct queries. You can find it by navigating to the subgraph details page and clicking on the "Query" button in the top right corner.

![Query Subgraph Button](/img/query-button-screenshot.png)

![Query Subgraph URL](/img/query-url-screenshot.png)

Learn more about querying from an application [here](/subgraphs/querying/from-an-application/).
You will notice that this query URL must use a unique API key. You can create and manage your API keys in [Subgraph Studio](https://thegraph.com/studio), under 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](/subgraphs/billing/).

> Please see the [Query API](/subgraphs/querying/graphql-api/) for a complete reference on how to query the subgraph's entities.
> Note: If you encounter 405 errors with a GET request to the Graph Explorer URL, please switch to a POST request instead.
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/).
### Additional Resources

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](/subgraphs/billing/).
- Use [GraphQL querying best practices](/subgraphs/querying/best-practices/).
- To query from an application, click [here](/subgraphs/querying/from-an-application/).
- View [querying examples](https://github.com/graphprotocol/query-examples/tree/main).

0 comments on commit 2bca911

Please sign in to comment.