Calindra / nonodo

Development Node for Cartesi Rolups
Apache License 2.0
22 stars 14 forks source link

Feature/report sync #129

Closed fabiooshiro closed 3 months ago

fabiooshiro commented 3 months ago

How to check

Run the postgraphile

docker network create mynetwork
docker build -t postgresteste:latest ./postgres
docker run -d --network mynetwork -p 5432:5432 --name postgres postgresteste:latest

docker build -t postgraphile-custom ./postgraphile/
docker run -d --network mynetwork -p 5000:5000 --name postgraphile-custom postgraphile-custom

Build

go build

Run the nonodo with HL GraphQL flag enabled

./nonodo --high-level-graphql --enable-debug --node-version v2

Access the HL GraphQL http://localhost:8080/graphql

Run a query:

query {
  reports {
    totalCount
    edges {
      node {
        payload
      }
    }
  }
}