metmirr a5c1266534 query-node: bugfix load entity relations for MediaLocationEntity hace 4 años
..
bootstrap 835b9dc8fd remove hydra related code hace 4 años
mappings a5c1266534 query-node: bugfix load entity relations for MediaLocationEntity hace 4 años
scripts 99aca3000b add script to get content-dir classes(id,name) from the chain hace 4 años
.gitignore 76916dfdd6 query-node: do not check in generated code hace 4 años
README.md fe235ebd3f query-node: configure with two separate databases hace 4 años
build.sh 04df68c182 query-node: point processor at correct database and do typeorm migrations for both DBs hace 4 años
db-migrate.sh 6e8c457127 query-node: factor out db:migrate to script hace 4 años
indexer-tsconfig.json bdb01a7d87 add esModuleInterop flag to indexer-tsconfig.json hace 4 años
package.json 6109bae322 Merge branch 'babylon' into integration-tests-updates hace 4 años
processor-start.sh 29c98cb97b do not reload .env in processor-start.sh hace 4 años
run-tests.sh 11d1b59f5c network-tests: rename scripts and split running scenarion from starting chain hace 4 años
schema.graphql dd32f719ba Merge remote-tracking branch 'upstream/babylon' into qnode-license-attribution hace 4 años
tsconfig.json 94e8fb7ae8 Query node - fix @joystream/types issue hace 4 años

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

Starting services

To start services defined in the project docker-compose.yml, you should run docker-compose from the project root folder to use the correct .env file

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 {
    handle
  }
}