Skip to content

Commit

Permalink
adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
idalithb committed Jan 15, 2025
1 parent 17ae273 commit df2aaf2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions website/pages/en/subgraphs/querying/from-an-application.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ Learn how to query The Graph from your application.

## Getting GraphQL Endpoint

Once a subgraph is deployed to [Subgraph Studio](https://thegraph.com/studio/) or [Graph Explorer](https://thegraph.com/explorer), you will be given two endpoints for your GraphQL API that should look something like this:
Once a subgraph is deployed to [Subgraph Studio](https://thegraph.com/studio/) or [Graph Explorer](https://thegraph.com/explorer), you will receive a Network and Subgraph Studio endpoint for your GraphQL API that looks like this:

### Network Endpoint
### Subgraph Studio Endpoint

```
https://gateway.thegraph.com/api/<API_KEY>/subgraphs/id/<SUBGRAPH_ID>
https://api.studio.thegraph.com/query/<ID>/<SUBGRAPH_NAME>/<VERSION>
```

### Subgraph Studio Endpoint
### Network Endpoint

```
https://api.studio.thegraph.com/query/<ID>/<SUBGRAPH_NAME>/<VERSION>
https://gateway.thegraph.com/api/<API_KEY>/subgraphs/id/<SUBGRAPH_ID>
```

With your GraphQL endpoint, you can use various GraphQL Client libraries to query the subgraph and populate your app with data indexed by the subgraph.
Expand Down

0 comments on commit df2aaf2

Please sign in to comment.