git clone https://github.com/subquery/tutorials-account-transfers.git
Under the project directory, run following command to install all the dependency.
yarn install
Autogenerate the typescripts by running this command under the project directory.
yarn codegen
yarn build
Under the project directory run following command:
yarn start:docker
Open your browser and head to http://localhost:3000
.
Finally, you should see a GraphQL playground is showing in the explorer and the schemas that ready to query.
For the subql-starter
project, you can try to query with the following code to get a taste of how it works.
query {
councillors (first: 3 orderBy: NUMBER_OF_VOTES_DESC) {
nodes {
id
numberOfVotes
voteHistories (first: 5) {
totalCount
nodes {
approvedVote
}
}
}
}
}