iorveth 68ecab08a3 Query node integration tests: move apollo-client dependency to the right place преди 4 години
..
bootstrap 835b9dc8fd remove hydra related code преди 4 години
mappings 32e21975d6 Revert .env, update content-dir-consts преди 4 години
.dockerignore ea241cf9f7 query-node: fix build scripts and remove generated code from yarn workspace преди 4 години
.env 32e21975d6 Revert .env, update content-dir-consts преди 4 години
.gitignore 76916dfdd6 query-node: do not check in generated code преди 4 години
README.md ea241cf9f7 query-node: fix build scripts and remove generated code from yarn workspace преди 4 години
docker-compose.yml 649082bcea Query node integration tests: hardcode delay (temporary solution) преди 4 години
indexer-tsconfig.json 9023b2b4ea Merge remote-tracking branch 'mokhtar/query-node/ignore-generated-code' into query-node-types преди 4 години
package.json 6a53ff4ca5 query-node: symlink to typeorm преди 4 години
run-tests.sh 1e76bbd32f query-node: extra check to for typeorm link, and checkin yarn.lock преди 4 години
schema.graphql 86a14a5067 add happenedIn field to Language and VideoMediaEncoding entities преди 4 години
tsconfig.json 94e8fb7ae8 Query node - fix @joystream/types issue преди 4 години
typedefs.json ca0f390137 update typedefs from types преди 4 години

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