1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00

GITBOOK-210: change request with no subject merged in GitBook

This commit is contained in:
Ana Loznianu 2023-05-22 11:44:50 +00:00 committed by gitbook-bot
parent 6ee1baa940
commit 365b4da5a9
No known key found for this signature in database
GPG Key ID: 07D2180C7B12D0FF
2 changed files with 9 additions and 5 deletions

View File

@ -20,6 +20,8 @@ You can utilize the Subgraph instances provided by Ocean Protocol or deploy your
If you're eager to use the Ocean Subgraph, here's some important information for you: We've deployed an Ocean Subgraph for each of the supported networks. Take a look at the table below, where you'll find handy links to both the subgraph instance and GraphiQL for each network. With the user-friendly GraphiQL interface, you can execute GraphQL queries directly, without any additional setup. It's a breeze! :ocean:
### Ocean Subgraph deployments
| Network | Subgraph URL | GraphiQL URL |
| ------------------- | ----------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
| Ethereum | [Subgraph](https://v4.subgraph.mainnet.oceanprotocol.com) | [GraphiQL](https://v4.subgraph.mainnet.oceanprotocol.com/subgraphs/name/oceanprotocol/ocean-subgraph/graphql) |

View File

@ -12,12 +12,14 @@ You'll find below an example of a GraphQL query that retrieves the first 10 data
There are several options available to see this query in action. Below, you will find three:
1. Run the GraphQL query.
2. Execute the query in Python by follwing the code snippet.
3. Run directly in the docs the query in JavaScript.
1. Run the GraphQL query in the GraphiQL interface.
2. Execute the query in Python by following the code snippet.
3. Execute the query in JavaScript by clicking on the "Run" button.
PS: In these examples, the query is executed on the Ocean subgraph deployed on the mainnet. If you want to change the network, please refer to [this table](../ocean-subgraph/#ocean-subgraph-deployments).
{% tabs %}
{% tab title="GraphQL query" %}
{% tab title="Query" %}
Copy the query to fetch a list of data NFTs in the Ocean Subgraph [GraphiQL interface](https://v4.subgraph.mainnet.oceanprotocol.com/subgraphs/name/oceanprotocol/ocean-subgraph/graphql) to fetch the results.
```
@ -38,7 +40,7 @@ Copy the query to fetch a list of data NFTs in the Ocean Subgraph [GraphiQL inte
{% endtab %}
{% tab title="Python" %}
The Python script below can be used to run the the query to fecth a list of data NFTs from the subgraph. If you wish to change the network, then replace the value of variable `base_url` as needed.
The Python script below can be used to run the query to fetch a list of data NFTs from the subgraph. If you wish to change the network, replace the value of variable `base_url` as needed.
**Create script**