READMEs don't support subgraph querying. Need to add --with-thegraph to barge #80
Closed
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