Skip to content

Updating from "Intro" to "How-to" #956

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Updating from "Intro" to "How-to" #956

wants to merge 1 commit into from

Conversation

idalithb
Copy link
Contributor

  • Turning this into a how-to-guide
  • Might revisit to add more at a later time

@idalithb idalithb requested a review from a team as a code owner May 17, 2025 00:24
@@ -1,7 +1,7 @@
import titles from './_meta-titles.json'

export default {
introduction: '',
introduction: 'How to Query',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
introduction: 'How to Query',
introduction: '',

Page titles should never be set in _meta.js files, but directly in the MDX's frontmatter, either as title or as sidebarTitle (as you've also done!), so that they remain translatable.


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

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

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/).
> Please see the [Query API](/subgraphs/querying/graphql-api/) for a complete reference on how to query the Subgraph's entities.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
> Please see the [Query API](/subgraphs/querying/graphql-api/) for a complete reference on how to query the Subgraph's entities.
> Please see the [GraphQL API](/subgraphs/querying/graphql-api/) for a complete reference on how to query the Subgraph's entities.


### Step 3: Manage Your API Key

Each query URL requires a valid API key. In [Subgraph Studio](https://thegraph.com/studio), locate the **API Keys** section to create or manage your keys. Learn more about how to use Subgraph Studio [here](/subgraphs/developing/deploying/using-subgraph-studio/).
Copy link
Contributor

@benface benface May 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not link directly to the API Keys page?

Suggested change
Each query URL requires a valid API key. In [Subgraph Studio](https://thegraph.com/studio), locate the **API Keys** section to create or manage your keys. Learn more about how to use Subgraph Studio [here](/subgraphs/developing/deploying/using-subgraph-studio/).
Each query URL requires a valid API key. Go to Subgraph Studio's [API Keys page](https://thegraph.com/studio/apikeys/) to create or manage your keys. Learn more about how to use Subgraph Studio [here](/subgraphs/developing/deploying/using-subgraph-studio/).

Comment on lines +18 to +22
Click the “Query” tab to explore the deployed GraphQL API for each Subgraph.

### Step 2: Retrieve the Query URL

On the Subgraph details page, select **Query** in the top right corner. Each Subgraph published to The Graph Network has a unique query URL in Graph Explorer to make direct queries.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like there's a bit of repetition between lines 18 and 22. I realize there is both a "Query" tab (which is the default selected tab when navigating to a Subgraph's details page, so there's really no need to click on it) and a "Query" button, but the latter only scrolls down to the "Query quick start" section of the "Query" tab, where the Query URL (among other things like Base URL and Subgraph ID) can be found and copied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants