Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add entity count in graph health #12

Open
llunaCreixent opened this issue Dec 21, 2021 · 1 comment
Open

Add entity count in graph health #12

llunaCreixent opened this issue Dec 21, 2021 · 1 comment

Comments

@llunaCreixent
Copy link
Member

It was deleted in #11,
but the visual component

import GrainIcon from '@material-ui/icons/Grain';

  <Chip
    icon={<GrainIcon />}
    label={`${health.graph.entityCount} entities`}
  />

and the complete query to the graph

{
  indexingStatusForCurrentVersion(subgraphName: "${process.env.SUBGRAPH_NAME}") {
    synced
    health
    entityCount
    fatalError {
      message
      block {
        number
        hash
      }
      handler
    }
    chains {
      chainHeadBlock {
        number
      }
      latestBlock {
        number
      }
    }
  }
}

can be added back once the index-node requests work again on thegraph.com.

@llunaCreixent
Copy link
Member Author

index-node requests are working again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant