|
%!s(int64=4) %!d(string=hai) anos | |
---|---|---|
.. | ||
bootstrap | %!s(int64=4) %!d(string=hai) anos | |
mappings | %!s(int64=4) %!d(string=hai) anos | |
.dockerignore | %!s(int64=4) %!d(string=hai) anos | |
.env | %!s(int64=4) %!d(string=hai) anos | |
.gitignore | %!s(int64=4) %!d(string=hai) anos | |
README.md | %!s(int64=4) %!d(string=hai) anos | |
docker-compose.yml | %!s(int64=4) %!d(string=hai) anos | |
indexer-tsconfig.json | %!s(int64=4) %!d(string=hai) anos | |
package.json | %!s(int64=4) %!d(string=hai) anos | |
run-tests.sh | %!s(int64=4) %!d(string=hai) anos | |
schema.graphql | %!s(int64=4) %!d(string=hai) anos | |
tsconfig.json | %!s(int64=4) %!d(string=hai) anos | |
typedefs.json | %!s(int64=4) %!d(string=hai) anos |
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
}
}