Querying > Querying the Hosted Service

Querying the Hosted Service

With the subgraph deployed, visit the hosted service to open up a GraphiQL interface where you can explore the deployed GraphQL API for the subgraph by issuing queries and viewing the schema.

An example is provided below, but please see the Query API for a complete reference on how to query the subgraph's entities.

Example

Link to this section

This query lists all the counters our mapping has created. Since we only create one, the result will only contain our one default-counter:

{
counters {
id
value
}
}

Using the hosted service

Link to this section

The Graph Explorer and its GraphQL playground is a useful way to explore and query deployed subgraphs on the hosted service.

Some of the main features are detailed below:

Explorer Playground

Edit page

Previous
GraphQL API
Next
Subgraph ID vs Deployment ID
Edit page