|
il y a 4 ans | |
---|---|---|
.. | ||
bootstrap | il y a 4 ans | |
mappings | il y a 4 ans | |
scripts | il y a 4 ans | |
.gitignore | il y a 4 ans | |
README.md | il y a 4 ans | |
build.sh | il y a 4 ans | |
db-migrate.sh | il y a 4 ans | |
indexer-tsconfig.json | il y a 4 ans | |
package.json | il y a 4 ans | |
processor-start.sh | il y a 4 ans | |
run-tests.sh | il y a 4 ans | |
schema.graphql | il y a 4 ans | |
tsconfig.json | il y a 4 ans |
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
To start services defined in the project docker-compose.yml, you should run docker-compose from the project root folder to use the correct .env file
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 {
handle
}
}