From 365b4da5a96fb92361bbe6cf1a306bd8e58bfc37 Mon Sep 17 00:00:00 2001 From: Ana Loznianu Date: Mon, 22 May 2023 11:44:50 +0000 Subject: [PATCH] GITBOOK-210: change request with no subject merged in GitBook --- developers/ocean-subgraph/README.md | 2 ++ developers/using-ocean-subgraph/list-data-nfts.md | 12 +++++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/developers/ocean-subgraph/README.md b/developers/ocean-subgraph/README.md index e1120070..59548639 100644 --- a/developers/ocean-subgraph/README.md +++ b/developers/ocean-subgraph/README.md @@ -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) | diff --git a/developers/using-ocean-subgraph/list-data-nfts.md b/developers/using-ocean-subgraph/list-data-nfts.md index 95e89c80..7b7f87a6 100644 --- a/developers/using-ocean-subgraph/list-data-nfts.md +++ b/developers/using-ocean-subgraph/list-data-nfts.md @@ -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**