Mokhtar Naamani 8361d337e6 query-node: esInterop hace 4 años
..
bootstrap 835b9dc8fd remove hydra related code hace 4 años
mappings 32e21975d6 Revert .env, update content-dir-consts hace 4 años
.env 32e21975d6 Revert .env, update content-dir-consts hace 4 años
.gitignore 76916dfdd6 query-node: do not check in generated code hace 4 años
README.md ea241cf9f7 query-node: fix build scripts and remove generated code from yarn workspace hace 4 años
build.sh f662b6fdda query-node: clean build hace 4 años
indexer-tsconfig.json 8361d337e6 query-node: esInterop hace 4 años
package.json 1cc6100faf docker: consolidate docker-compose files hace 4 años
run-tests.sh 1cc6100faf docker: consolidate docker-compose files hace 4 años
schema.graphql 86a14a5067 add happenedIn field to Language and VideoMediaEncoding entities hace 4 años
tsconfig.json 94e8fb7ae8 Query node - fix @joystream/types issue hace 4 años
typedefs.json ca0f390137 update typedefs from types 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

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