|
4 years ago | |
---|---|---|
.. | ||
bootstrap | 4 years ago | |
mappings | 4 years ago | |
.dockerignore | 4 years ago | |
.env | 4 years ago | |
.gitignore | 4 years ago | |
README.md | 4 years ago | |
docker-compose.yml | 4 years ago | |
indexer-tsconfig.json | 4 years ago | |
package.json | 4 years ago | |
run-tests.sh | 4 years ago | |
schema.graphql | 4 years ago | |
tsconfig.json | 4 years ago | |
typedefs.json | 4 years ago |
The query-node project contains an input schema (schema.graphql) and mappings for the Joystream content-directory
runtime module.
We use Hydra-cli to generate a graphql server and a block indexer for joystream chain:
$ cd query-node
$ yarn build
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
Once processor start to store event data you will be able to query this data from http://localhost:4002/graphql
.
query {
channels {
title
}
}