General Discussion

 View Only
  • 1.  How can PDI connect to GraphQL API?

    Posted 12-15-2021 14:00
    Hi,

    I'm hoping someone can point me in the right direction.

    I'm trying to connect to the below subgraph

    https://thegraph.com/hosted-service/subgraph/uniswap/uniswap-v3

    The only thing I've been able to find is a Node4J plugin in the market place and a small amount of info on using Cypher to query GraphQL databases.

    If anyone knows of a tutorial on how I could use PDI to run the below query against the above mentioned subgraph, I'd be super grateful!

    Many thanks

    John

    {
    factories(first: 5) {
    id
    poolCount
    txCount
    totalVolumeUSD
    }
    bundles(first: 5) {
    id
    ethPriceUSD
    }
    }

    ------------------------------
    John Dugmore
    Chief Technology Officer
    JRGD Consulting
    ------------------------------


  • 2.  RE: How can PDI connect to GraphQL API?

    Posted 12-15-2021 16:50
    So, I've made some progress using the REST client and I'm getting the below error. Any obvious issues with the syntax there?

    result
    GraphQL server error (client error): Invalid subgraph name "uniswap/uniswap-v3;key=QmZeCuoZeadgHkGwLwMeguyqUKz1WPWQYKcKyMCeQqGhsF"

    ------------------------------
    John Dugmore
    Chief Technology Officer
    JRGD Consulting
    ------------------------------