# README
Cartesi's HL GraphQL
Technical Vision Forum Discussion
Description
Exposes the High Level GraphQL reader API in the endpoint http://127.0.0.1:8080/graphql
.
You may access this address to use the GraphQL interactive playground in your web browser.
You can also make POST requests directly to the GraphQL API.
For instance, the command below gets the number of inputs.
QUERY='query { inputs { totalCount } }'; \
curl \
-X POST \
-H 'Content-Type: application/json' \
-d "{\"query\": \"$QUERY\"}" \
http://127.0.0.1:8080/graphql
Connecting to Postgres locally
Start a Postgres instance locally using docker compose.
make up-db-raw
New configuration
export POSTGRES_GRAPHQL_DB_URL="postgres://postgres:password@localhost:5432/hlgraphql?sslmode=disable"
export POSTGRES_NODE_DB_URL="postgres://postgres:password@localhost:5432/rollupsdb?sslmode=disable"
./cartesi-rollups-hl-graphql
Old configuration
When running cartesi-rollups-hl-graphql, set flag db-implementation with the value postgres
export POSTGRES_HOST=localhost
export POSTGRES_PORT=5432
export POSTGRES_DB=hlgraphql
export POSTGRES_USER=postgres
export POSTGRES_PASSWORD=password
export POSTGRES_NODE_DB_URL="postgres://postgres:password@localhost:5432/rollupsdb?sslmode=disable"
./cartesi-rollups-hl-graphql --raw-enabled --graphile-disable-sync --db-implementation=postgres
Contributors
Made with contributors-img.
# Functions
No description provided by the author
No description provided by the author
LoadEnv from embedded .env file.
# Variables
No description provided by the author
No description provided by the author
1,44 MB.