metmirr c1d09f2175 refactoring 4 years ago
..
bootstrap 835b9dc8fd remove hydra related code 4 years ago
mappings c1d09f2175 refactoring 4 years ago
scripts 99aca3000b add script to get content-dir classes(id,name) from the chain 4 years ago
.dockerignore ea241cf9f7 query-node: fix build scripts and remove generated code from yarn workspace 4 years ago
.env 32e21975d6 Revert .env, update content-dir-consts 4 years ago
.gitignore 76916dfdd6 query-node: do not check in generated code 4 years ago
README.md ea241cf9f7 query-node: fix build scripts and remove generated code from yarn workspace 4 years ago
docker-compose.yml c95bc9ff31 query-node: test runner fix passing WS_PROVIDER_ENDPOINT_URI env variable 4 years ago
indexer-tsconfig.json bdb01a7d87 add esModuleInterop flag to indexer-tsconfig.json 4 years ago
package.json 6aef226a82 update hydra-cli version 0.0.18->0.0.19 4 years ago
run-tests.sh 1e76bbd32f query-node: extra check to for typeorm link, and checkin yarn.lock 4 years ago
schema.graphql ffc460f473 add License, MediaLocation entities to schema.graphql, type fix 4 years ago
tsconfig.json 94e8fb7ae8 Query node - fix @joystream/types issue 4 years ago
typedefs.json ca0f390137 update typedefs from types 4 years ago

README.md

query-node

The query-node project contains an input schema (schema.graphql) and mappings for the Joystream content-directory runtime module.

Code generation

We use Hydra-cli to generate a graphql server and a block indexer for joystream chain:

$ cd query-node
$ yarn build

Run mapping processor

Before running mappings make sure indexer(yarn indexer:start) and indexer-api-server (mappings get the chain data from this graphql server) are both running:

yarn processor:start

Query data

Once processor start to store event data you will be able to query this data from http://localhost:4002/graphql.

query {
  channels {
    title
  }
}