oceanprotocol / pm

Zenhub needs each issue associated with one repo. This repo is a workaround, to mark issues that span >1 repos.
4 stars 0 forks source link

Graphql data type #176

Closed alexcos20 closed 2 years ago

alexcos20 commented 2 years ago

So far, we supported 'url ' and 'ipfs' types for data storage Since https://github.com/oceanprotocol/provider/pull/537, there is a new one, called 'graphql'. This allows publishers to publish datasets and use graphql querys as datasource.

Format for graphql type is as follows:

Example:

[
        {
            "type": "graphql",
            "url": "http://172.15.0.15:8000/subgraphs/name/oceanprotocol/ocean-subgraph",
            "query": """
                    query{
                        nfts(orderBy: createdTimestamp,orderDirection:desc){
                            id
                            symbol
                            createdTimestamp
                        }
                    }
                    """,
        }
    ]

Sometimes, it's not enough to have one simple query, you need some input from user. This can be achieved with something like:

When downloading the dataset, user has to pass userdata to provider request

LoznianuAnamaria commented 2 years ago

@alexcos20 Do we need to do something else on this or can we close it?