|
пре 4 година | |
---|---|---|
.. | ||
bootstrap | пре 4 година | |
mappings | пре 4 година | |
scripts | пре 4 година | |
.env | пре 4 година | |
.gitignore | пре 4 година | |
README.md | пре 4 година | |
build.sh | пре 4 година | |
indexer-tsconfig.json | пре 4 година | |
package.json | пре 4 година | |
run-tests.sh | пре 4 година | |
schema.graphql | пре 4 година | |
tsconfig.json | пре 4 година |
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
}
}