Skip to content
This repository has been archived by the owner on Apr 10, 2023. It is now read-only.

Commit

Permalink
Merge pull request #574 from chainstack/feature/subgraph_fixes
Browse files Browse the repository at this point in the history
subgraph doc fixes
  • Loading branch information
conor2e authored Dec 8, 2022
2 parents e73f97a + 5269fe6 commit f72e2e5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.8.7+{BUILD_NUM}
3.8.8+{BUILD_NUM}
1 change: 1 addition & 0 deletions docs/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ meta:
content: release notes version blockchain cloud protocol
---


# Release notes

## Chainstack 3.8.4
Expand Down
15 changes: 7 additions & 8 deletions docs/subgraphs.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ meta:

# Subgraphs

::: details
This is a closed beta. If you want to participate, contact *kirill.balakhonov@chainstack.com*
::: tip Information
This is a closed beta. If you want to participate, contact *support@chainstack.com*
:::

## Introduction
Expand Down Expand Up @@ -93,26 +93,25 @@ graph –v
1. In <a href="https://console.chainstack.com/subgraphs" target="_blank">Subgraphs</a>, open the details page of your new subgraph and copy the **Deployment command**, which will have the following format:

``` sh
graph deploy --node https://graph.chainstack.com/3c6e0b8a9c15224a8228b9a98ca1531d/deploy --ipfs https://graph.chainstack.com/3c6e0b8a9c15224a8228b9a98ca1531d/ipfs my_subgraph_v1_0
graph deploy --node https://api.graph-eu.p2pify.com/3c6e0b8a9c15224a8228b9a98ca1531d/deploy --ipfs https://api.graph-eu.p2pify.com/3c6e0b8a9c15224a8228b9a98ca1531d/ipfs my_subgraph_v1_0
```

1. Paste and run the command in your CLI.
1. Enter a version label for your subgraph (you can use any number/letter character combination). If the subgraph is successfully deployed, you will receive a response like the following example:

``` sh
Deployed to https://chainstack.com/subgraphs/SGR-123-456-789
Deployed to https://chainstack.com/subgraphs/SG-123-456-789
Subgraph endpoints:
Queries (HTTP): https://elastic-subgraphs.p2pify.com/3c6e0b8a9c15224a8228b9a98ca1531d/my_subgraph_v1_0
Queries (HTTP): https://ethereum-mainnet.graph-eu.p2pify.com/3c6e0b8a9c15224a8228b9a98ca1531d/my_subgraph_v1_0
```

In the subgraph details page, the status of the subgraph will change to **Deployed. Initial sync in progress** and will continuously provide feedback on the progress of the synchronization process. When it completes, the status will change to **Up to date**.

::: tip
::: tip Information
If the subgraph is in the **Failed** state, click **Logs** to view four levels of messages generated by the indexer and troubleshoot the issue.
:::


## Query a subgraph

To query a subgraph, you can choose from either of the following **Subgraph query** options in the subgraph details page:
Expand All @@ -129,7 +128,7 @@ curl -g \\
-X POST \\
-H "Content-Type: application/json" \\
-d '{"query":"{myTransactions(first: 5) { id _value _from _to}}"}' \\
https://elastic-subgraphs.p2pify.com/3c6e0b8a9c15224a8228b9a98ca1531d/my_subgraph_v1_0
https://ethereum-mainnet.graph-eu.p2pify.com/3c6e0b8a9c15224a8228b9a98ca1531d/my_subgraph_v1_0
```

### GraphQL UI URL query in browser
Expand Down

0 comments on commit f72e2e5

Please sign in to comment.