Skip to content

READMEs don't support subgraph querying. Need to add --with-thegraph to barge #80

Closed
@trentmc

Description

How to replicate

In console, start barge with what predictoor.md instructs:

./start_ocean.sh --predictoor --with-pdr-trueval --with-pdr-trader --with-pdr-publisher --with-pdr-dfbuyer

Then, go to the browser, and open the following url. It's a subgraph query:
http://localhost:9000/subgraphs/name/oceanprotocol/ocean-subgraph/graphql?query=query+MyQuery+{%0A++predictContracts+{%0A++++id%0A++++token{%0A++++++name%0A++++}%0A++}%0A}

When I put that into the browser, it gives me "site can't be reached"

Debugging, to a solution

The ocean-subgraph repo gives instructions for starting barge as: ./start_ocean.sh --with-thegraph.

So I added --with-thegraph to the predictoor barge instructions:

./start_ocean.sh --predictoor --with-pdr-trueval --with-pdr-trader --with-pdr-publisher --with-pdr-dfbuyer --with-the-graph

And, it works! :)

TODOs

Ensure that ---the-graph is in every relevant README

Metadata

Assignees

No one assigned

    Labels

    Type: BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions