npm i -D eip721-subgraph
install subgraph-deploy
npm i -D subgraph-deploy
in your package.json you can add a script to deploy that subgraph in your running graph-node
{
"scripts": {
"deploy:eip721-subgraph": "subgraph-deploy -s wighawag/eip721-subgraph -f eip721-subgraph -i http://localhost:5001/api -g http://localhost:8020"
}
}
{
tokens {
contract
tokenID
owner
tokenURI
}
}
or
{
tokens(orderBy: mintTime) {
contract
tokenID
owner
tokenURI
mintTime
}
tokenContracts {
id
}
}